copy old logic code and use network

1. copy and move logic code base on cocos2dx
2. now can use network now