private void SetBlackPawnPatterns() { for (int i = 0; i < 64; i++) { var pattern = Pawn.GetBlackPattern(i); Squares[i].BlackPawnPatterns = new Square[pattern.Length]; for (int j = 0; j < pattern.Length; j++) { Squares[i].BlackPawnPatterns[j] = Squares[pattern[j]]; } } }