Quantum tic-tac-toe