function checkWin(theBoard, player) {
    return winArray.some(function (win) {
        return win.every(function (i) {
            return theBoard[i] === player;
        });
    });
}
/*
* used to determine if the player has won or not
*/
used to determine if the player has won or not
used to determine if the player has won or not
function checkWin(theBoard, player) {
    return winArray.some(function (win) {
        return win.every(function (i) {
            return theBoard[i] === player;
        });
    });
}
function checkWin ( theBoard , player ) { return winArray . some ( function ( win ) { return win . every ( function ( i ) { return theBoard [ i ] === player ; } ) ; } ) ; }
used to determine if the player has won or not
used to determine if the player has won or not