add game rules to prepareNextGeneration() function