public int getRight(int yBottom, int range, TBlock movingBlk) {
		int minX = 11;
		int yTop = yBottom + range;
		for (TBlock blk: blks) {
			if (!blk.equals(movingBlk)) {
				TSquare[] sqs = blk.getSquares();
				for (int i = 0; i < sqs.length; i++) {					
					Point2D pInContainer = blk.getSqCoordinate(i);					
					int x = (int)pInContainer.getX();
					int y = (int)pInContainer.getY();
					//if the x of the sq is in the [yBottom, yRight), choose the maximum of sq.x and maxX
					if ((y >= yBottom) && (y < yTop)) {
						minX = Math.min(minX, x);
					}
				}
			}
		}
		return minX;
	}