function caStep(old) { var old = [0].concat(old, [0]); // Surround with dead cells. var state = []; // The new state. for (var i=1; i