All I can think of as of now is to try every possibilities... Like, make a function that determines which box the CPU is going to choose, and see if ONLY button1 is checked, then choose a couple of possible winning picks.

But that would make the code to be really long. There has to be a shorter way... I think..

Any help?