function stopGame() {
  //gameplayig is false because no game is active
  gamePlaying = false;

  //swaps the stop and start button
  document.getElementById("startBtn").classList.remove("hidden");
  document.getElementById("stopBtn").classList.add("hidden");
}
//called when the user wants to stop game/game ends
called when the user wants to stop game/game ends
called when the user wants to stop game / game ends
function stopGame() {
  gamePlaying = false;
  document.getElementById("startBtn").classList.remove("hidden");
  document.getElementById("stopBtn").classList.add("hidden");
}
function stopGame ( ) { gamePlaying = false ; document . getElementById ( "startBtn" ) . classList . remove ( "hidden" ) ; document . getElementById ( "stopBtn" ) . classList . add ( "hidden" ) ; }
called when the user wants to stop game/game ends
called when the user wants to stop game / game ends
//gameplayig is false because no game is active //swaps the stop and start button