Try to submit the number so it's exact when you submit it. Like, if you have 25 Candies, type 28, to take into the account the time it takes you to type, then when you actually have 28 Candes, then press enter at the moment. Something like that.
What do you think?