simplified clockwise-renumber
introduced maprows to further simplify clockwise-renumber
inlined clockwise-renumber into clockwise
fix the rotate commands so they actually update the current shape