refatorando games_controller