Changed the way the grid and walls are rendered so that they work for non-rectangular rooms.