New pathfinding in test2.html