Is it just me, or is level 3 not possible to win? I believe I've tried every possible sequence and none of them succeed...
The key is to rotate the tracks while the train is running.