Both trains face the same direction and will not turn around. The “train” is connected to a cable that pulls the engine and passenger cars down the specially designed track. The above diagram from Wikipedia shows how a funicular works. Both trains are connected to the same cable loop.