updates cocos2D and fixes mem management issue