efficient tictactoe