Simple chat server written in Java. Academic Assignment