Still working on the creating the grid. Have calculated the required rows/cols (and the numbers that go in them). Now just to to output all of this.