a backend of a very simple ios cocos2d game