Code now GENERATES AND OUTPUTS THE GRID

Horray! v1 hard bit done :P