private boolean showInSameRowOrSameCol(int r, int c, int checkNum,int [][] numbers) {
        boolean isExists = false;
        for(int i=0;i<numbers[r].length;i++){
            if(numbers[r][i] == checkNum){
                isExists = true;
                break;
            }
        }
        if(!isExists){
            for(int i=0;i<numbers.length;i++){
                if(numbers[i][c] == checkNum){
                    isExists = true;
                    break;
                }
            }
        }
        return isExists;
    }