drawing the grid