I believe there's an issue in the train logic here, it could decide to move 1/2 a wagon forwards. I guess in this configuration it takes the same amount of movements, so perhaps it isn't a bug? It seems unexpected to me that it does it though, it could line up two in that step without any issues while it only actually lines up one. My fourth image is a drawing i made to maybe make it a bit more clear.




