An Agent that will implement dijkstra's algorithm