function endGame() {
  var removeGame = document.getElementById('gameBackground').remove();
  for(var i = 0; i < formArray.length; i++){
    formArray[i].removeEventListener('submit', handleUserInput);
  }
}
//and turn off the event listeners
and turn off the event listeners
and turn off the event listeners
function endGame() {
  var removeGame = document.getElementById('gameBackground').remove();
  for(var i = 0; i < formArray.length; i++){
    formArray[i].removeEventListener('submit', handleUserInput);
  }
}
function endGame ( ) { var removeGame = document . getElementById ( 'gameBackground' ) . remove ( ) ; for ( var i = 0 ; i < formArray . length ; i ++ ) { formArray [ i ] . removeEventListener ( 'submit' , handleUserInput ) ; } }
and turn off the event listeners
and turn off the event listeners