updated room dimensions and collision detection