Improved the display of the grid on the console