private void CheckMessages(Client client)
        {
            bool isConnected = true;

            while (isConnected)
            {
                try
                {
                    string[] message = client.Recieve();
                    queue.Enqueue(message);
                    logger.RecieveMessage($"{DateTime.Now} {client.Username}: {message[2]}" + Environment.NewLine);
                }
                catch (Exception)
                {
                    RemoveUser(client);
                    isConnected = false;
                }
            }
        }