Activate puzzle mode with bug fix

Detection of rotated pattern was wrong.