Grid drawing implemented

Drawing the grid now works for arbitrarily sized grids, provided the x and y dimensions are both larger than 1.