pathfinding prototype