Wrap a shelf position back to the last shelf
Math.floorMod
java.lang.Math.floorMod
integer %
Integer#modulo