puts execution into links, sets up for multiple states
adds another example taken from http://pmav.eu/stuff/javascript-game-of-life-v3.1.1/, and a randomly generated one