Why have you got so much code in your main method?
If you simply want to repeat the game if the user enters "yes", you will have to put your code inside a loop. You can have a loop which runs until the user enters "stop" or you can have a loop which repeats only when the user enters "yes". Or similar. There is a peculiar idiom, which I shall tell you about, because you will never guess it by yourself.
I am sure you will get it quicker than somebody did
three years ago. That was a problem similar to yours, only the poster wanted to stop when the user entered "stop". Note a different
String class method from equals() was recommended.