Chatroom implemented in java