tictactoe works