Chinese Chess Game with socket in iOS