Added Grid.java, Patch.java