checkpoint commit: trying to use cbreak instead
simplify ttt minimax