sequential version of 3D Game of Life