The CPU opponent is extremely easy to beat because it just picks a random place to go. pick the number you want to go to place your piece. eg. 1 = top left 2 = top middle 3 = top right 4 = middle left 5 = middle 6 = middle right 7 = bottom left 8 = bottom middle 9 = bottom right
All by me (click the green flag twice because if you don't, an O will still be showing here's the link for the O going first: https://scratch.mit.edu/projects/1075574337