Enter the X cells :
Enter the Y cells :

Depth First Traversal

in mobile device 5x5 is recommended,Traversal will start from top left node