change game mode function added