Chat server written in Java for network programming class