Very cool game, and what a good idea of the theme. Only complain is I wasn't able to beat a single level. It almost feels like there isn't enough pieces.
Indeed, there are not enough pieces. You need to click and remove the ones on which the train already went (they change color). Once they are back in the stock, you can click on them to place them at the end of the track.