private bool isRoomNameUnique(string name) { foreach (Room room in world.Rooms) { if (room.name == name) { return false; } } return true; }