Game of life main logic added.