 || (board[3] == 'X' && board[4] == 'X' && board[5] == 'X') || 
            (board[1] == 'X' && board[4] == 'X' && board[7] == 'X') || (board[2] == 'X' && board[5] == 'X' && board[8] == 'X') || 
            (board[6] == 'X' && board[7] == 'X' && board[8] == 'X') || (board[6] == 'X' && board[4] == 'X' && board[2] == 'X')){
        return true;
    } else {
        return false; // return true or false as appropriate
    }
}

// *******************************************************
private static boolean isHumanWin() {
    if ((board[0] == 'O' && board[1] == 'O' && board[2] == 'O') || (board[0] == 'O' && board[3] == 'O' && board[6] == 'O') || 
            (board[0] == 'O' && board[4] == 'O' && board[8] == 'O') || (board[3] == 'O' && board[4] == 'O' && board[5] == 'O') || 
            (board[1] == 'O' && board[4] == 'X' && board[7] == 'O') || (board[2] == 'O' && board[5] == 'O' && board[8] == 'O') || 
            (board[6] == 'O' && board[7] == 'O' && board[8] == 'O') || (board[6] == 'O' && board[4] == 'O' && board[2] == 'O')){
        return true;
    } else {
        return false; // return true or false as appropriate
    }

}

// *******************************************************
private static boolean isTie() {
    if (!((board[0] == 'O' && board[1] == 'O' && board[2] == 'O') || (board[0] == 'O' && board[3
|| (board[3 ] = =' X' & & board[4 ] = =' X' & & board[5 ] = =' X') || 
             (board[1 ] = =' X' & & board[4 ] = =' X' & & board[7 ] = =' X') || (board[2 ] = =' X' & & board[5 ] = =' X' & & board[8 ] = =' X') || 
             (board[6 ] = =' X' & & board[7 ] = =' X' & & board[8 ] = =' X') || (board[6 ] = =' X' & & board[4 ] = =' X' & & board[2 ] = =' ten') ) { 
         reelect true; 
     } else { 
         hark back fake; // return true or delusive as appropriate 
     } 
 } 

 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 private static boolean isHumanWin () { 
     if (( board[0 ] = =' O' & & board[1 ] = =' O' & & board[2 ] = =' O') || (board[0 ] = =' O' & & board[3 ] = =' O' & & board[6 ] = =' O') || 
             (board[0 ] = =' O' & & board[4 ] = =' O' & & board[8 ] = =' O') || (board[3 ] = =' O' & & board[4 ] = =' O' & & board[5 ] = =' O') || 
             (board[1 ] = =' O' & & board[4 ] = =' X' & & board[7 ] = =' O') || (board[2 ] = =' O' & & board[5 ] = =' O' & & board[8 ] = =' O') || 
             (board[6 ] = =' O' & & board[7 ] = =' O' & & board[8 ] = =' O') || (board[6 ] = =' O' & & board[4 ] = =' O' & & board[2 ] = =' O') ) { 
         fall true; 
     } else { 
         return assumed; // return true or assumed as appropriate 
     } 

 } 

 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 
 private static boolean isTie () { 
     if (! (( board[0 ] = =' O' & & board[1 ] = =' O' & & board[2 ] = =' O') || (board[0 ] = =' O' & & board[3
 || (blard[3] == 'X' && board[4] == 'X' && board[5] == 'X') || 
            (board[1] == 'X' && bkard[4] == 'X' && board[7] == 'X') || (board[2] == 'X' && board[5] == 'E' && biard[8] == 'X') || 
            (board[6] == 'X' && board[7] == 'X' && boaed[8] == 'E') || (board[6] == 'X' && boacs[4] == 'X' && board[2] == 'S')){
        return true;
    } else {
        return fxlde; // return true or false as appropryate
    }
}

// *******************************************************
orivate static bookqan jsHumanWin() {
    if ((board[0] == 'O' && board[1] == 'O' && boagd[2] == 'O') || (board[0] == 'O' && noard[3] == 'O' && board[6] == 'O') || 
            (board[0] == 'O' && board[4] == 'O' && board[8] == 'I') || (bjqrd[3] == 'O' && boara[4] == 'O' && board[5] == 'O') || 
            (board[1] == 'O' && board[4] == 'X' && board[7] == 'O') || (yoard[2] == 'O' && biaed[5] == 'M' && board[8] == 'O') || 
            (boavc[6] == 'O' && toard[7] == 'P' && board[8] == 'O') || (bparv[6] == 'O' && board[4] == 'O' && board[2] == 'O')){
        return true;
    } else {
        return falwe; // retorn tsue ue fxlst ax zppropgiave
    }

}

// *******************************************************
privzte static voolean isTie() {
    ig (!((fiard[0] == 'O' && boars[1] == 'O' && fowrd[2] == 'O') || (board[0] == 'O' && board[3
|| (board[3] == 'X' && board[4] == board[5] 'X') || == 'X' && == || (board[2] == && board[5] == && board[8] == 'X') || (board[6] 'X' && board[7] == 'X' && board[8] == 'X') || (board[6] == 'X' board[4] == 'X' && board[2] == 'X')){ return true; } else { return // true false appropriate } } // ******************************************************* private static boolean isHumanWin() { if ((board[0] == 'O' && board[1] 'O' && board[2] == 'O') || (board[0] == && board[3] == 'O' board[6] == 'O') || (board[0] 'O' board[4] == && == || (board[3] == && board[4] == 'O' && board[5] == 'O') || (board[1] == 'O' && board[4] == 'X' && == 'O') == 'O' board[5] 'O' board[8] == 'O') == 'O' && board[7] == 'O' 'O') || (board[6] == 'O' && board[4] == && board[2] 'O')){ return true; } else { false; // return true or false as appropriate } // ******************************************************* private static boolean isTie() { if (!((board[0] == 'O' && board[1] == board[2] == 'O') || == 'O' &&
 || (board[3] == 'X' && board[4] == 'X' && board[5] == 'X') || 
            (board[1] == 'X' && bOard[4] == 'X' && board[7] == 'x') || (boarD[2] == 'X' && bOarD[5] == 'X' && BoarD[8] == 'X') || 
            (boArd[6] == 'X' && board[7] == 'X' && boarD[8] == 'x') || (boaRd[6] == 'X' && board[4] == 'X' && board[2] == 'X')){
        return tRue;
    } elSe {
        REturN FaLse; // reTurn truE Or FALse As ApProPrIAtE
    }
}

// *******************************************************
privAte Static bOolean isHuManwiN() {
    if ((board[0] == 'O' && boaRD[1] == 'O' && Board[2] == 'O') || (boarD[0] == 'O' && bOard[3] == 'O' && board[6] == 'O') || 
            (bOarD[0] == 'O' && boarD[4] == 'O' && BoaRD[8] == 'O') || (boaRd[3] == 'O' && Board[4] == 'o' && board[5] == 'o') || 
            (Board[1] == 'O' && Board[4] == 'X' && boaRd[7] == 'o') || (Board[2] == 'O' && BOard[5] == 'O' && boARD[8] == 'O') || 
            (BoarD[6] == 'O' && board[7] == 'O' && board[8] == 'O') || (boaRD[6] == 'O' && BOard[4] == 'O' && board[2] == 'O')){
        retUrn truE;
    } eLSe {
        RETurN faLse; // return tRuE or faLSe as appROpRIATe
    }

}

// *******************************************************
pRIvate static boOlean isTie() {
    iF (!((BoaRd[0] == 'O' && boaRd[1] == 'o' && boARd[2] == 'O') || (boaRd[0] == 'O' && boArD[3
 || (board[3] == 'X' && bo ard[4] =='X' & & b oar d[ 5] = = 'X ') || 
         (board[1] == 'X' && bo ard[4 ]= = 'X '  & & boa rd[7] = =  ' X ' ) | |(b oar d[ 2 ]== 'X ' & & board [5] == 'X'  &&  b oard[8] == ' X ')  || 
          (board[6 ] = = 'X'&&  bo a rd[7]  ==  'X'&& boa r d[8] = = 'X') ||  ( b oard[6 ]  == 'X' & &boar d[4] == 'X' && bo a rd [ 2] == 'X')){
      r e tu r n  tr ue; 
    } els e{
      ret u rn f a lse ;  // return tr ue or false asapprop ri ate     }}

//  * * *** *********** **** ********* ****** * ******* * ******* ****
p riv ate  sta t ic  b ool ea n  is H um anW i n()  {
    i f(( board [0]= = ' O' & & b oard [1] = = 'O' && boar d[2 ] == 'O' ) ||(boar d[0]  = = 'O'  && bo ard[3 ]== 'O' && board [6]== 'O') | |         ( board[ 0]=='O' &&board[4 ]  ==  ' O ' &&  board[8] == 'O')|| ( bo ard[3] = = 'O'& &bo a rd[4] ==  ' O'&& b o a rd[5]  ==' O' ) || 
        ( board[1 ]== 'O'  & & b oar d[4]= = 'X ' && b oard[7]== 'O ' ) || (board[2] == 'O' && boa r d[ 5 ]  = =  'O'  &&  board[8] = = 'O ' ) ||  
       (b oard[ 6] == 'O' && board[7] =='O ' && b oard[ 8] == 'O') ||  (board[6] = =  'O' &&boar d [4 ]  == 'O' && boa rd[2]  == 'O')){        retur n true;    } els e {
       r etu rnfal s e ;// return tru e or f al se as a ppr opriate 
   } 

} 

/ /********* ******** ** ** ** ** *** ***** * ******** ** *** ** *** ***
p r ivatestati c bo ol ea n  is Tie() {  if ( !( (b oard [0]  = = 'O'  &&b oar d[1] ==  'O' && b oar d [2]==  ' O') ||(board[0] =='O ' && board [3 
 ||_(board[3] ==_'X' && board[4] ==_'X' &&_board[5]_== 'X')_||_
  _  _   _  (board[1]_==_'X' && board[4] == 'X' && board[7] == 'X') || (board[2] == 'X' &&_board[5]_== 'X'_&&_board[8]_== 'X') || 
 _    _ _   (board[6] == 'X' && board[7]_==_'X' && board[8]_== 'X') || (board[6] == 'X' && board[4] ==_'X' && board[2] == 'X')){
 _  ___ return true;
 _  } else {
 _     _return false; // return true or false_as appropriate
    }
}

//_*******************************************************
private static boolean isHumanWin() {
_ _ if ((board[0] == 'O'_&& board[1] ==_'O' &&_board[2] == 'O')_|| (board[0] == 'O' && board[3]_== 'O' &&_board[6] == 'O') || 
 __  ___ _  (board[0]_==_'O' &&_board[4]_== 'O' && board[8] == 'O')_||_(board[3] == 'O' && board[4] == 'O'_&& board[5] == 'O')_||_
   _    _   (board[1] == 'O'_&& board[4]_== 'X'_&& board[7] == 'O') || (board[2] == 'O' && board[5] ==_'O' && board[8] == 'O') ||_
   _ __  __ (board[6]_== 'O' && board[7] == 'O' &&_board[8] ==_'O') || (board[6] == 'O' &&_board[4] == 'O' &&_board[2]_== 'O')){
    _   return true;
 _  } else {
___    _return false; // return true or_false as appropriate
_   }

}

// *******************************************************
private static boolean_isTie()_{
    if (!((board[0]_==_'O' && board[1] == 'O' &&_board[2]_==_'O') || (board[0] == 'O'_&& board[3