Black-boxed pathfinding