Completed till a test case
Fixed chat server