Made TicTacToe support gridSize and winLength parameters.