Created ModeChangeException class and initial support for changing game modes.