If it ended up mutated before that Check out it'd need to set it back again when invalid. The tactic should Maybe be named rotatedLeftCopy() to point that it is not shifting the state. Or the check need to be performed beforehand and afterwards rotateLeft() might be Harmless to change https://www.tetr1s.com/