Click the flag until you win! You have about a 1/100% chance of winning. Easier than you think.
NOTE: I have stopped working on my game for now, it is really glitchy and some code does not work so it is stressful to make, goodbye.