made the find shortest path class