refactored GameViewController.