Update life.cpp