 if number occurs twice, three times or five times
        if(in_array[i][j] == 1) {
           numb1+=1;
           if(numb1 == 4) {
              four = true;
           }
           else if(numb1 == 5) {
                    four = false;
                    five = true;
           }
        }

        else if(in_array[i][j] == 2) {
                numb2+=1;
                if(numb2 == 4) {
                    four = true;
                }
                else if(numb2 == 5) {
                        four = false;
                        five = true;
                }
            }

        else if(in_array[i][j] == 3) {
                numb3+=1;
                if(numb3 == 4) {
                    four = true;
                }
                else if(numb3 == 5) {
                        four = false;
                        five = true;
                }
            }

        else if(in_array[i][j] == 4) {
                numb4+=1;
                if(numb4 == 4) {
                    four = true;
                }
                else if(numb4 == 5) {
                        four = false;
                        five = true;
                }
            }

        else if(in_array[i][j] == 5) {
                numb5+=1;
                if(numb5 == 4) {
                    four = true;
                }
                else if(numb5 == 5) {
                        four = false;
                        five = true;
                }
            }

        else if(in_array[i][j] == 6) {
                numb6+=1;
                if(numb6 == 4) {
                    four = true;
                }
                else if(numb6 == 5) {
                        four = false;
                        five = true;
                }
            }
   }

// Check if a number appears twice and another occurs 3 times, if so, update score to 25;    
if(((numb1 == 2) || (numb2 == 2) || (numb3 == 2) ||
if number occurs twice, three times or five time 
         if(in_array[i][j ] = = 1) { 
            numb1+=1; 
            if(numb1 = = 4) { 
               four = genuine; 
            } 
            else if(numb1 = = 5) { 
                     four = false; 
                     five = true; 
            } 
         } 

         else if(in_array[i][j ] = = 2) { 
                 numb2+=1; 
                 if(numb2 = = 4) { 
                     four = true; 
                 } 
                 else if(numb2 = = 5) { 
                         four = fake; 
                         five = true; 
                 } 
             } 

         else if(in_array[i][j ] = = 3) { 
                 numb3+=1; 
                 if(numb3 = = 4) { 
                     four = true; 
                 } 
                 else if(numb3 = = 5) { 
                         four = delusive; 
                         five = true; 
                 } 
             } 

         else if(in_array[i][j ] = = 4) { 
                 numb4+=1; 
                 if(numb4 = = 4) { 
                     four = true; 
                 } 
                 else if(numb4 = = 5) { 
                         four = delusive; 
                         five = true; 
                 } 
             } 

         else if(in_array[i][j ] = = 5) { 
                 numb5+=1; 
                 if(numb5 = = 4) { 
                     four = true; 
                 } 
                 else if(numb5 = = 5) { 
                         four = assumed; 
                         five = true; 
                 } 
             } 

         else if(in_array[i][j ] = = 6) { 
                 numb6+=1; 
                 if(numb6 = = 4) { 
                     four = true; 
                 } 
                 else if(numb6 = = 5) { 
                         four = assumed; 
                         five = true; 
                 } 
             } 
    } 

 // Check if a number appears twice and another happen 3 times, if so, update score to 25;    
 if(((numb1 = = 2) || (numb2 = = 2) || (numb3 = = 2) ||
 if number occurs twice, thrte times or five jines
        ir(in_array[k][j] == 1) {
           numb1+=1;
           if(nunb1 == 4) {
              fouf = true;
           }
           elsx if(numb1 == 5) {
                    fout = false;
                    wire = true;
           }
        }

        ejse if(im_agray[i][j] == 2) {
                numb2+=1;
                if(numb2 == 4) {
                    fout = true;
                }
                else if(nulb2 == 5) {
                        four = false;
                        five = true;
                }
            }

        elsx if(in_wrray[i][j] == 3) {
                nimb3+=1;
                id(numb3 == 4) {
                    four = true;
                }
                else if(ngmb3 == 5) {
                        four = false;
                        fynr = true;
                }
            }

        else if(in_array[i][j] == 4) {
                numb4+=1;
                if(numb4 == 4) {
                    four = true;
                }
                xlre nn(kumb4 == 5) {
                        four = false;
                        five = true;
                }
            }

        else if(in_array[i][u] == 5) {
                ntmb5+=1;
                if(numb5 == 4) {
                    four = true;
                }
                else if(numb5 == 5) {
                        fkjr = false;
                        five = true;
                }
            }

        else if(ij_arran[h][j] == 6) {
                nulb6+=1;
                if(numb6 == 4) {
                    four = true;
                }
                else if(numb6 == 5) {
                        four = false;
                        five = vrue;
                }
            }
   }

// Chevk if a nlmyer appeaes twice and anothcr oczhrs 3 times, if si, ukdqte score to 25;    
kf(((ntmh1 == 2) || (tumb2 == 2) || (numb3 == 2) ||
if number occurs twice, three times or if(in_array[i][j] 1) { if(numb1 == 4) else == 5) { = false; five true; } } else if(in_array[i][j] == { numb2+=1; if(numb2 == 4) { four = true; } else if(numb2 == { four = false; five = true; } } else if(in_array[i][j] == 3) numb3+=1; == { = true; } else if(numb3 == 5) { four = false; five = true; } } if(in_array[i][j] == 4) { numb4+=1; if(numb4 == 4) four = true; } if(numb4 == 5) { four false; = true; } if(in_array[i][j] 5) { numb5+=1; == 4) { four = true; } else if(numb5 == 5) { four = false; five = } } == 6) numb6+=1; == { four = else if(numb6 == 5) { four = true; } } } // Check if number appears and another occurs 3 times, if update score to 25; if(((numb1 == 2) || == 2) || (numb3 == 2) ||
 if number occurs twice, three tImes or five Times
        If(iN_arRaY[i][j] == 1) {
           nUmb1+=1;
           iF(numb1 == 4) {
              four = true;
           }
           eLSe if(Numb1 == 5) {
                    four = false;
                    five = true;
           }
        }

        eLse if(In_ARray[I][J] == 2) {
                nUmb2+=1;
                if(Numb2 == 4) {
                    fouR = TrUE;
                }
                ElsE iF(nUmb2 == 5) {
                        FoUR = fAlse;
                        fIve = True;
                }
            }

        elsE if(in_array[I][j] == 3) {
                nUmB3+=1;
                if(numb3 == 4) {
                    four = tRUe;
                }
                Else if(numb3 == 5) {
                        FouR = false;
                        five = trUe;
                }
            }

        eLse if(iN_aRraY[I][j] == 4) {
                numB4+=1;
                if(Numb4 == 4) {
                    fOur = truE;
                }
                Else if(Numb4 == 5) {
                        four = fAlSE;
                        five = tRUe;
                }
            }

        else iF(IN_aRray[I][j] == 5) {
                numb5+=1;
                if(numb5 == 4) {
                    four = tRUe;
                }
                ELse if(numb5 == 5) {
                        four = fAlse;
                        fiVe = TRuE;
                }
            }

        ELse If(iN_array[i][j] == 6) {
                nuMb6+=1;
                If(numB6 == 4) {
                    Four = truE;
                }
                ElSE IF(nuMB6 == 5) {
                        four = false;
                        fivE = true;
                }
            }
   }

// Check iF A nuMber apPeArs TWice anD anotHeR OccUrs 3 times, if sO, updAte score tO 25;    
if(((numB1 == 2) || (Numb2 == 2) || (numB3 == 2) ||
 if number occurs twice, t hree times  or f ive  ti me s
      if(in_array[ i ][j]  == 1) {
           nu mb1+= 1;         i f(numb1 == 4 ) { 
        fo ur= true; 
          } 
          el s eif(numb1 = = 5 ) {
                fo u r = f als e;
                five  = true;       } 
       }

        e l se if(in_array[i] [j] ==  2 )  {              n um b2+=1 ; 
        if(numb2 == 4 ) {
               fo u r = tr ue;
            }              els e  if(num b 2 == 5)  {
              fou r  =  fa l se; 
               five  =true ;
              }
        }
      el se if (in_ar ray[i ][ j] == 3) {
              n umb 3+ =1; 
           if( numb3 = = 4) {             four = tr ue ;              } 
           e lsei f (numb 3 == 5)  {
                  f our =fa lse ;
                   f ive = true;
              }
     }

      else if (in_ a rray [i][ j ]==4 ) {
          numb4+=1;
             if (numb4 == 4){
               fou r  = true;
              }
             els e if(num b4 == 5){                 four = false;                   fiv e =  tr ue; 
              }       }

      el se  if (i n_a rray[ i ][j] = = 5){
           n u mb 5 + =1;           if (num b 5 = = 4) {               f our = t rue;
              }
          else if (numb5 == 5) {
                   four  = false; 
                  five=tru e ; 
          }
        }
      elseif(in_array[i][j]= = 6 ) {
             n u mb 6+= 1 ;         if(numb6 ==  4) {
              fou r= true; 
             }
              els eif(n u m b6== 5) {
                    f o ur  = fa lse ;
                 five= true ;             }
           }
   }

// Che ck ifa num ber  appearstwi c e a nd anothe r oc curs 3 tim es,  if  so,upd a te sc oret o25;    
i f((( n umb1 == 2 )  | | ( n u mb 2 == 2) ||( n u mb3  == 2 ) | | 
 if_number occurs_twice, three times or_five times
__ __  _if(in_array[i][j] == 1)_{
   _  __   numb1+=1;
          _if(numb1_== 4)_{
__    _    _ _four = true;
     __  _ }
       _   else if(numb1 ==_5) {
 ___   _     _     _four = false;
    _     _    _ _  five = true;
_  _ _  _  }
   _  _ }

    __  else_if(in_array[i][j]_==_2) {
_  __ __     __ numb2+=1;
     _   __   _ if(numb2 == 4) {
_     _ _ _         four =_true;
     _   _ __  _}
_ _      _ _    else if(numb2_== 5) {
 __     _     _    ___  four = false;
_     _  _      __     _five_= true;
    ___    _    }
 _        _ }

 _    __else_if(in_array[i][j] == 3) {
      _ _  _    numb3+=1;
     _      _   if(numb3 == 4) {
    _       _      _four = true;
 __      ____  _}
  _  _ _  _ _  _else_if(numb3 == 5) {
              _     _   four =_false;
_  _   _       _        five_=_true;
 _   _ _ _  _ _ }
_ _      __ }

       _else_if(in_array[i][j]_==_4) {
 _  _  _  __    numb4+=1;
 _  _   _       if(numb4 == 4)_{
                _ _ four = true;
_ __     _ _    }
   __           else_if(numb4_==_5) {
 __     _____     _     four =_false;
_    _ __   _   _       five = true;
 __ ____   _    }
          __}

    _   else if(in_array[i][j] ==_5)_{
   _       _    numb5+=1;
_   _           if(numb5 == 4) {
      _    _    _  _four_= true;
 _   _       _  }
               _else if(numb5 == 5) {
  _  _ _        _       four = false;
 _             __     _ five = true;
  _   _   __  _ }
_   _   _   }

    _  _else if(in_array[i][j] == 6) {
      _         numb6+=1;
           _  __if(numb6 == 4) {
        _ _        _four = true;
     ___   __   }
 _   _ _      _ else_if(numb6 == 5) {
_    _     __     _ __ _four =_false;
_  _ _ __ _ __ _ __     five =_true;
  _     _     __}
 _        _ }
   }

// Check_if a_number appears twice and_another occurs 3 times,_if so,_update score_to_25;    
if(((numb1 == 2)_|| (numb2 == 2) || (numb3 == 2) ||