Created a function that improves communication between one generation prisoners, and called this function several times before the prisoners give new generation.