Chat server in Java which allows connection via telnet