fun and games with simple ternary