added current progress on dijkstra's algorithm. need to generate path and cost and exit loop properly