Dynamically adds a piece to the right side (beyond maximum argument value of previous piece)
new rightmost position. If is less than current rightmost position, an error is thrown.
the sub-function.