Ternary choices in repeated games and border collision bifurcations