Reset terminal at the start of minimax