Click on spaces to move. X always goes first..
Thanks to @390334 for helping me with the code and @A_Tiny_Mushroom for giving me the idea with his Waffle Tic Tac Toe project. Please comment on bugs.