Extensions for Cocos2d