On my Modern Version of Lionel's Disappearing Train Layout I used a magnetic latch relay for two MTH Caterpillar sets. One set goes into tunnel and other set comes out of tunnel. Kids figure out there are two different trains before adults.
See Electrical Control and Wiring Information for relay control.