adding watch to Dijkstra algo run