Update train.c

Added basic loop and modes for departing, arriving, and cruising