Just take alternate turns to play tic tac toe as you all know. You need someone to play with you. Not the cpu.
Thanks to Coding with Chris on youtube for teaching me on how to do this project