The brain has the ability to change the visual perspective of what we see. To change the direction of the train, you just have to think about it.