Don’t some wooden trains use magnets for couplers? One has to make sure the cars are in proper alignment or the couplers repel rather than attract each other. If the train isn’t too long and one doesn’t jerk the train too hard when pulling the train, the couplers will hold.
Mark