implemented ChatServerThread.java