An AI would have been nice...
Correct me if I'm wrong but as far as I can tell your 'opponent' is just randomly selecting a square. Tic Tac Toe AI's really aren't too hard and without something to play against the game is kinda useless, even though the actual interface works perfectly fine.