Check internally for valid squares. Shift on 1, not two -- the first bit is to mark 0 and 1, and shifting it once will turn it into 2.
Check internally for valid squares. Shift on 1, not two -- the first bit is to mark 0 and 1, and shifting it once will turn it into 2.