added reverse direction for pathfinding and.....

overlap fix properly done. The third parameter of pathfinding can be
added as true to reverse the direction of object thus avoiding the
target location.