Added a cost method to the Path class, and a visited=false to line 73 of
the Vertex class; it is supposed to make it so that nodes can be
revisited, but it's adding an extra edge to my path.