AStar pathfinding framework