refactored how the rows are checked in the tests
refactored how the rows are checked in the tests
added the grid dimension to the Grid constructor to test out a larger grid.