Oh, you are right! I calculated it wrong. I was thinking that if the first FM is rolling about continuously, and second almost continuously, then the second would be subtracting a pulse that happens to be in first FM at that time.
But i never thought that they might be rolling like you described.
But the simple logic could still work. We need a circuit added to this what stores the FM2 pulses, and releases them at that time when FM1 gives pulses. That should work. So it stops the random bit banging.
Right?
Shift register chip might be the one. But i've never done any other than the basic AND, OR, NOT. But i'll search for what would be the chip