Correct printing of the grid
Corrected the grid
Prim almost working