For Example:
I have 200 chips, I bet max (200).
I spin the wheels, my count still says I have 200 chips. Realistically this should be a 0.
I get a cherry on my spin, that should pay out 400 chips. (2x bet). This part actually works correctly, I should now have 400 chips, 2 times my bet.
Then the payout is added to my chips but the bet was never taken out of my chip count. Now I have 600 chips.