ternary getOpponent