Bugfixes for `room` script

Ensure `room` script works with both even and odd width rooms of any
height.