Fixed track button rotation and tweaked pathfinding