function _basicAI() {
    const id = _.sampleSize(_findEmptyPositions(), 1);
    _arrayRemove(_findEmptyPositions(), id);
    _disableFields(_useFieldSolo);
    _move(id);
    _handleGameAI();
    if (obj.gameOver === true) {
      _turnHandlerAI("stop");
    } else {
      _enableFieldsAI();
    }
  }
// gets an array of empty indices and comes up with a random spot to play
gets an array of empty indices and comes up with a random spot to play
gets an array of empty indices and comes up with a random spot to play
function _basicAI() {
    const id = _.sampleSize(_findEmptyPositions(), 1);
    _arrayRemove(_findEmptyPositions(), id);
    _disableFields(_useFieldSolo);
    _move(id);
    _handleGameAI();
    if (obj.gameOver === true) {
      _turnHandlerAI("stop");
    } else {
      _enableFieldsAI();
    }
  }
function _basicAI ( ) { const id = _ . sampleSize ( _findEmptyPositions ( ) , 1 ) ; _arrayRemove ( _findEmptyPositions ( ) , id ) ; _disableFields ( _useFieldSolo ) ; _move ( id ) ; _handleGameAI ( ) ; if ( obj . gameOver === true ) { _turnHandlerAI ( "stop" ) ; } else { _enableFieldsAI ( ) ; } }
gets an array of empty indices and comes up with a random spot to play
gets an array of empty indices and comes up with a random spot to play