function Automaton(messaging, screen, session) { var startMenu = ['New Game', 'Settings']; if(session.hasSavedGame()) { startMenu.unshift('Continue'); } screen.menu(startMenu); messaging.addEventListener(['Init'], function(game) { console.log(game); }); //messaging.send({tag: 'NewGame'}); }