merge for deploy: refactor .userAction() and .createGame() function