Game of life with rules