Refactoring gameCtrl

Refactoring gameCtrl