You are also talking about a track with infinite mass because otherwise the reason train can change direction is because it's pushing the track northwards

Obviously! It goes without saying that the track must be infinitely massive and infinitely stiff, mounted on an entirely inflexible infinite plane.

See, now you're talking real physics!