public int game_done(board game){
        
        /* iterate through every box in the game board */
        for(int i =0; i<3;i++){
            for(int j=0;j<3;j++){
              
               /* sets up the location array */
              int[] loc = {i,j};
              
              /* compares to see a board is won */
              if( tic_win(game.getState(loc)) >= 1 ){
                return tic_win(game.getState(loc));
              }
                
            }
        }
        
        return 0;
    }