minor edits on Grid.java