Added some error checking for the GRID
fixed a few bugs with the rows and columns functions. Now checks to make sure your columns and rows don't get too high