public static boolean checkDungeonBounds(RoomReference reference,
			Room[][] map, Room room) {
		if (reference.getX() == 0 && room.hasWestDoor())
			return false;
		if (reference.getX() == map.length - 1 && room.hasEastDoor())
			return false;
		if (reference.getY() == 0 && room.hasSouthDoor())
			return false;
		if (reference.getY() == map[0].length - 1 && room.hasNorthDoor())
			return false;
		return true;
	}