A basic chat in java using sockets