Server-side chat application written in java (very basic)