Adding classes for the train!

Also implemented state change when set to StillLogic.