game mode variable updates when mode changes