Update Server.java

Finished with chat, only need to handle mode confusion and some unexpected errors