Fixed a bug in conway's game of life