changed game mode switching structure