Added Grid.java with shell for traverse(int n)