mostly working. just needs to update distance from node 1 to node 2