When i tried to give this a shot by pausing the video i did not think about bool or do/while instead created a loop (ignore any formatting). It works but not sure if its the right way to do it.
string PlayAgain()
{
cout << "Do you wanna play again? << “\n”;
string Response = “”;
cout << "Select (y/n): " << “\n”;
cin >> Response;
if (Response == "y")
{
main();
}
else
{
cout << "\nThank you for playing!\n";
}
return Response;
}