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