Implemented hashmap on top of TrainImpl to find out which stations are visited