The client side part of a chat program using java sockets