perfecionar pathfinding