bug fixed

changed heuristicDistance() to take strings as paramenters