You can make the train change direction with the power of your mind … and you can get better at it with practice.
Perception always involves going beyond the evidence of the senses. In this case, the evidence is relatively sparse, such that there are two plausible interpretations: The train is coming or the train is going. We can choose to see it either way.