added reset on switching game mode