Add a method to visualize the rectangle grid.