public synchronized void disconnectClient (int ID)
    {
	//Closes the socket in addition to the input and output streams
	try
	{
	    ((TcpThread) flexclients.get (ID)).Soutput.close ();
	    ((TcpThread) flexclients.get (ID)).Sinput.close ();
	    ((TcpThread) flexclients.get (ID)).socket.close ();
	}
	catch (Exception e)
	{
	}

	//deletes the client from the client list
	flexclients.remove (ID);
	updateClients ();
    }