Cheap train tickets: Here's how you can beat the illogical pricing system