public void run()
	{
		while (true)
		{
			try
			{
				byteArray = new byte[1024];
				receivePacket = new DatagramPacket(byteArray, byteArray.length);
				ds.receive(receivePacket);
				String data = new String(receivePacket.getData(), "UTF-8").trim();
				st = new StringTokenizer(data, Protocol.DELIMITER);
				String request = st.nextToken();
				if(request.equals(Protocol.GET_JOIN))
				{
					request = st.nextToken();
					if(request.equals(Protocol.GET_JOIN_USERNAMETAKEN))
						clientGUI.connectionStatusError("Username taken");
					if(request.equals(Protocol.GET_JOIN_ACCEPT))
						clientGUI.connectionStatusOK();
					if(request.equals(Protocol.GET_JOIN_DECLINED))
						clientGUI.connectionStatusError("Your request was declined");
				}
				else
				 	clientGUI.addMessage(data);
			} catch (IOException e)
			{
				System.out.println("Unable to receive Datagram.");
				ds.close();
				break;
			}
		}
	}