figuring out conway's game of life