public void randomizeCell(int cellIndexX, int cellIndexY) {
        int[] copyOfDNA = dna.clone();
        List<Integer> sequence = getSequence();

        do {
            Collections.shuffle(sequence);

            for (int indexY = 0; indexY < gridPower; indexY++)
                for (int indexX = 0; indexX < gridPower; indexX++)
                    dna[getDNAIndexFromCellPositionAndLocalCoordinates(cellIndexX, cellIndexY, indexX, indexY)] = sequence.get(indexY * gridPower + indexX);
        } while (copyOfDNA == dna);
    }