Marshal the wagons. In many ways. Move the wagons on the rails using the locos. This can be very tricky. There are at least two solutions.