Added method to spawn new trains

Fixed bugs in TrainControllerUI