Made a few small changes and cleaned up code

When it stops expanding a room, the algorithm now picks a random room
slot to build the next room from, rather than building the new room from
the last slot of the previous room.