i have something like
while(playAgain==true) { cout<<\"new game\"<
This solution is specific to your case. When the user's decision is 'n', he doesn't want to play again. So just set playAgain to false and then break. Outer loop will be broken automatically.
playAgain
false
while(playAgain==true){ cout<<"new game"<