Adding turn based in cocos2dx and bug fix