fix game of life issue