A simple chat server in java