Fixed bug, still testing: longest_pathNEW.py