Changed solve method in DijPlanner