fixed game of life implementation. todo: fix pit1