dorking around with cpp pathfinding