Glitch effects reduced. Here's a revised circuit with a couple of resistors added to ensure white and red can't show at the same time on a given end of the railcar. Power supply decoupling capacitors for the ICs would be advisable but aren't shown.