public int bufferRight(int ori) {
		int buff = 0;
		int width = getTiles()[0].length == 9 ? 3 : 4; // get width (3 or 4) of piece
		width = getTiles()[0].length == 4 ? 2 : width;	
		for(int j = width-1; j >= 0; --j){
			boolean tmp = true;
			for(int i = 0; i < width; ++i){
				if(tiles[ori][i*width+j]) {
					tmp = false;
				}
			}
			if(tmp){
				++buff;
			} else break;
		}
		return buff;
	}