Implemented train storage and giveRandomTrain method.