Experimental pathfinding algorithm