We can’t help you unless you want to help yourself.
If you think the coin mech is going to change something - go ahead keep hoping. It will arrive, then you’ll start bleating the same questions.
Go look for Arduino pulse counter- you may learn something.
It won’t be your complete program*, but you’ll have an understanding and maybe some code to help you get there.
Ok, so in your estimation you have button #1 sorted, how about counting pulses on button #2
It won’t kill you, and when the mech arrives, you can move forward.
But at the moment, there’s nothing anyone can do for you if you refuse to follow or engage with suggestions.
- as was mentioned, your complete program already may be hiding with VID1