Update grid.java

got rid of lines