now parses the grid file for the size (theoretically any size up to 99x99)