main.js working on auto restart after timeout

need timeout callback, and then the following might work:

game.state.start(game.state.current);