Game Train manager

For a limited time of the round of the game, several orders should be completed. They accurately indicate the number of cars with certain raw materials and the sequence of their placement behind the locomotive. When the cars are not attached correctly, something is missing or there is something extra, the game does not count the order and sends the train to a new circle. Your task is to control the freight train by translating the arrows at the intersections of the rails, as well as activating red or green traffic signals. When the train passes by a quarry or logging, the car automatically clings to it. Near the factory that ordered the delivery, you need to switch the traffic light. If an extra car is taken into the train, it can be removed with one click.