shortestPath is now working