Update Grid.java

Sorry if this comes up as a huge, huge change, but I'm having problems pushing to the repository.