class GameController {
  constructor() {
    'ngInject';
  }
}

export default GameController;

@@ -30,16 +30,22 @@
 tructor(
+$scope
 ) %7B%0A    
@@ -55,16 +55,159 @@
 Inject';
+%0A%0A    $scope.$on('server_disconnect', function(event, args) %7B%0A      alert('Server disconnected. Game ended.');%0A      $state.go('main');%0A    %7D);
 %0A  %7D%0A%7D%0A%0A

Add disconnect event checker to game page