Welcome to Auto Gambling, the game where you can simulate gambling but without the real money! When your turn begins, the variable in the corner should say your turn, and you press space for the little ball to randomly fall into one of the pits. If you get it into the green pit, you gain and the CP loses whatever the CP's wager is. If the CP does the same, the CP gains and you lose whatever your wager is. If you get the ball in the red pit, you lose and the CP gains whatever its wager is, and vice versa.
Everything by me, and I am totally fine if you use it without giving credit to me.