working on printing the grid