tic-tac-toe game for class