Added heuristic to minimize the distance between player and closest box