[refactor] rename game.coffee to ui.coffee
upgrade event structure with game loop