foolish me had to fix A* to return shortest path