Distribuited chat room with server selection algorithm