Using final ints for the height and length of the grid. Renamed maxRow to numRows for clarity