I think this fixed the shortestPath bug... I think this returns the shortest path... still need to test some more to confirm.