bug found

link2019 error when calling heuristicDistance() method
Trying to solve