Trying to fix the infinite loop in makeRoom()