Update toString() in Grid.java

The display was reversed. This problem is fixed.