Write Dijkstra’s Algorithm and hook it up to the front-end by replacing the earlier BFS that we used for path finding.