Refactor listener in GameActivity.