private int sumSharingFunc(Organism organism, int speciesI, int organismJ) {
        int sum = 0;
        for (int i = 0; i < getSpecies().size(); i++) {
            for (int j = 0; j < getSpecies().get(i).getNumberOrganisms(); j++) {
                if (i != speciesI || j != organismJ) {
                    if (organism.countDistanceDelta(getSpecies().get(i).getOrganism(j)) <= NeatClass.p_compat_threshold) {
                        sum += 1;
                    }
                }
            }

        }
        return sum;
    }