async function playAgain() {

  let again = await ask("Would you like to play again? 'Y' or 'N'\n")

  if (again == "Y") {
    await start()
  } else {
    process.exit()
  }
}
//----------------------------------------- function to start a new game -----------------------------------------//
function to start a new game
function to start a new game
async function playAgain() {
  let again = await ask("Would you like to play again? 'Y' or 'N'\n")
  if (again == "Y") {
    await start()
  } else {
    process.exit()
  }
}
async function playAgain ( ) { let again = await ask ( "Would you like to play again? 'Y' or 'N'\n" ) if ( again == "Y" ) { await start ( ) } else { process . exit ( ) } }
function to start a new game
function to start a new game