We are given n players, each player has 3 values assigned A, B and C.
A player i cannot win if there exists another