Sequential Game of Life in JavaScript