Moved collision code out of the room.