Chat server written in java