Better algorithm needed
basic game, basic everything. Since it's just a test of your knowledge here some tips that maybe you don't know.
from the looks of it the computer is just picking boxes at random. Maybe look into doing a brute force recursive algorithm to enable it to pick the best box to select. If you don't know what that is, google it. If you would like help you can PM me and I'll give you some pointers.