function minifax() {
    const random = Math.floor((Math.random() * 9))
    gameBoard[random] = "X";
    squares[random].innerText = "X";
    checkGameOver();
}
// Function for AI to perform first move, randomized

Function for AI to perform first move, randomized
Function for AI to perform first move randomized
function minifax() {
    const random = Math.floor((Math.random() * 9))
    gameBoard[random] = "X";
    squares[random].innerText = "X";
    checkGameOver();
}
function minifax ( ) { const random = Math . floor ( ( Math . random ( ) * 9 ) ) gameBoard [ random ] = "X" ; squares [ random ] . innerText = "X" ; checkGameOver ( ) ; }
Function for AI to perform first move, randomized
Function for AI to perform first move randomized