refactor of game.js and related, add UserActions.js