public void saveBlock(Block b, Peer p){
		Piece piece = this.pieces.get(b.getIndex());
		if(piece!=null)
			piece.saveBlock(b);
		if(piece.complete()){
			this.recieved[b.getIndex()] = true;
			completedPieceCount++;
			if(completedPieceCount == this.torrentInfo.piece_hashes.length){
				saveFile();
				this.done  = true;
			}
			this.peerManager.notifyPeersPieceCompleted(piece.getIndex());
			
		}
	}