adds pathfinding (A-star)