Check isSafe for pattern moves