The snake game classes on the cocos2d-x framework