addex nested class for gameStateSwitch