public static Match Combination(Match firstFit, Match secondFit)
{
if ((firstFit == Match.Inverted && secondFit == Match.NonInverted) ||
(firstFit == Match.NonInverted && secondFit == Match.Inverted))
{
return Match.Inverted;
}
if ((firstFit == Match.Inverted && secondFit == Match.Inverted) ||
(firstFit == Match.NonInverted && secondFit == Match.NonInverted))
{
return Match.NonInverted;
}
return Match.Impossible;
}