when a block is red ,it's alive,or it's dead. Only when the number of a active block's  active neighbour is more than 2 and less than 4 ,it can stay active,or it'll die;when a dead block owns 3 active neighbour ,it can be alive again