reset cocos2d state