finally added toggleGameMode()