checkBlackWhiteTransistion error solved return values from CheckPatterns changed