The goal of the game is to put all the train cars of the same colour in the correct order.
To move an engine or car, first click it to highlight it, then click an empty spot to move it there. Click a highlighted car again to deselect it. However, there are rules to be followed.
An engine can only be moved to the front, and a car can only be moved behind another car if it would have been the correct position. (Ex. Move blue car 1 behind blue engine or move red car 3 behind red car 2.)
Not every game can be won.