bug fixing: nextCarriage method must retrieve the locomotive as first
carriage always.