Treat it like a normal tic-tac-toe game.
No win check just yet- I know I made the variables cloud but it doesn't work that way, sorry.