add linked list to chat_server.c