You can store the variable in GameMode or GameState:
What should I do in GameMode, GameState, and PlayerState?