Created ts classes
Traversing path
Handling but too slow for large grids