added generation neighbours count and checks if cell should die