finished logic on the train.
Merge pull request #8 from bigtone1284/train

finished logic on the train.