Improved formatting.
Fixed iterator going out of bounds.
First version of working grid to string output.