public void run(){
		while(true){
			//System.out.println("here");
			byte[] buf = new byte[Mediator.MTU];
			 DatagramPacket recv = new DatagramPacket(buf, buf.length);
			 try {
				socket.receive(recv);
				if ((Math.random()*100) > 20 || recv.getData()[0] == Mediator.DISCONNECT) {
					mediator.handleReceivedPacket(recv);
				}else{///this is just for testing
//					mediator.getGui().addStringToChat(" ", 0, 0, 0, "this line dropped the ack/message");
				}
			} catch (IOException e) {
				e.printStackTrace();
			}
		}
	}