Simple chat using network with java