first game of life version without ifs