First hack for a chat client/server. Buggy