Networked chat application using basic Java networking