Small chat programm in Java