client side pathfinding implemented