Game of life with React