Add methods to print the grid