private void FindNeighboursForEachPattern(PatternDataResults patternFinderResult, Dictionary <int, PatternNeighbours> result)
 {
     for (int row = 0; row < patternFinderResult.GetGridLengthY(); row++)
     {
         for (int col = 0; col < patternFinderResult.GetGridLengthX(); col++)
         {
             PatternNeighbours neighbours = PatternFinder.CheckNeighboursInEachDirection(col, row, patternFinderResult);
             PatternFinder.AddNeighboursToDictionary(result, patternFinderResult.GetIndexAt(col, row), neighbours);
         }
     }
 }