The code is part of the MousePlayerController. I think, this script is from the ORK Integration for A* Pathfinding, if you say that the A* Components are correct and the behaviour is not from A* then I probably have to ask in the ORK Forum.
Thanks for the Information.