private void newSolve(ArrayList<Solve> population, int ind1, int ind2) {
        Random rand = new Random();
        Solve a = population.get(ind1);
        Solve b = population.get(ind2);
        Solve c = new Solve();
        Solve d = new Solve();
        int j = rand.nextInt(chromosomesize);
        for (int i = 0; i < j; i++) {
            c.Colors.add(a.Colors.get(i));
            d.Colors.add(b.Colors.get(i));
        }
        for (int i = j; i < chromosomesize; i++) {
            c.Colors.add(b.Colors.get(i));
            d.Colors.add(a.Colors.get(i));
        }
        c.ValueSolve(matr);
        d.ValueSolve(matr);
        population.set(ind1, c);
        population.set(ind2, d);
    }