public int dropHeight(Piece piece, int x) {
		int[] skirt = piece.getSkirt();
		int result = 0;
		int origY = getColumnHeight(x) + skirt[0];
		int maxStep = 0;
		int maxColumnHeightWithinSkirt = getColumnHeight(x);
		for (int i = 1; i < skirt.length; i++) {
			int step = skirt[0] - skirt[i];
			if (Math.abs(maxStep) < Math.abs(step))
				maxStep = step;
			if (maxColumnHeightWithinSkirt < getColumnHeight(x + i))
				maxColumnHeightWithinSkirt = getColumnHeight(x + i);
		}
		if (maxStep > 0)
			result = origY - maxStep;
		else if(maxStep < 0)
			result = getColumnHeight(x);
		else
			result = maxColumnHeightWithinSkirt;
		return result; // YOUR CODE HERE
	}