dijkstras working but not finding the shortest path.