Fix some printing issues with large grids

Signed-off-by: David Fisher-Moreau <deiform87@gmail.com>