updateds to Cocos2D 3.1 and SB 1.1