Imported some other main classes from old cocos2d project.