ref(game): modularize the main controller and view