out of bounds check for generateRooms