Finished the life algorithm