Made more object oriented

Removed "magic formulas" for calculating the dimensions of the grid and
added classes and method that allow for the dimensions to be calculated
by simulating a run through the spiral