Fix packet sending
Fix problems in pathfinding