change the train control, and after every run ,the experimentor decides whther to train ro test, and the tcpsocket to User GUI has been debuged