pulled in the dijkstras algorithm from darkest path, removed the weight, and fixed it up