Loose connection / wires on one of the opto's ? Alignment ?
Put the game in switch test and tap the optos and wiggle the wire/s and see if they register normally.
I had a game an opto was misaligned so bad (bent bracket) it was acting really strange until I cleaned and lined them up correctly.
That and a flaky LM339.......