Update ChatServer.java

Updated to the latest version of code