[wip] implementing Dijkstra algorithm for path finding