add utility method for drawing a grid