AStar with strange results and inverted X and Y.
Fixed X and Y inversion.