added structure for messages, and simple train queue array with wrap around for current trains.