ShortestPath works in the animation