add bounds checking to room generator