Criei uma função que detalha se foi falado "game over" ou "o jogo acabou":
function gameOver(chute){
    if(chute === "game over" || chute === "o jogo acabou") {
        document.body.innerHTML = `
        <h2>Game Over!!!<h2>
        <h3>Pressione o botão para jogar novamente</h3>
        <button id="jogar-novamente" class="btn-jogar"> Jogar novamente <i class="fa-solid fa-rotate-right fa-spin"></i> </button>
    `
        document.body.style.backgroundColor =  "#7149C6";
    }
}
depois chamei a função no onSpeak :
function onSpeak(e) {
...
    gameOver(chute);
   ... 
            