q5, changed mazeDistance to manhattanDistance