public void speciate(List<Organism> organisms) {
        /* All other genomes are placed into species as follows: 
         * A random member of each existing species is chosen as its permanent representative.
         * Genomes are tested one at a time; if a genome’s distance to the representative of any 
         * existing species is less than t, a compatibility threshold, it is placed into this species.*/

        String path = "/Users/anastasiiakabeshova/Documents/these_softPartie/sorties/delta_" + getGenerationNumber()
                + "_" + EcritureTXTfichier.nextEnabeledIDfile() + ".txt";
        EcritureTXTfichier toFile = new EcritureTXTfichier(path);
        toFile.writeToFile(path);

        for (int i = 0; i < organisms.size(); i++) {
            boolean added = false;
            for (int j = 0; j < getSpecies().size(); j++) {
                double delta = organisms.get(i).countDistanceDelta(getSpecies().get(j).getRepresentOrganism());
                //write delta to file               
                toFile.appendToFile(true, delta);

                if (delta < AppProperties.compatThreshold()) {
                    getSpecies().get(j).addOrganism(organisms.get(i));
                    j = getSpecies().size();
                    // go out from second for
                    added = true;
                }
            }
            /**
             * Otherwise, if it is not compatible with any existing species, a
             * new species is created and given a new number.
             */
            if (added == false) {
                getSpecies().add(new Species(organisms.get(i)));
            }
            toFile.appendToFile(true, "\n");
        }
    }