Added looping mechanism to chat

* now can send more that one message before termination
* TODO: implement sender side code to complete loop