I started writing my first real program earlier and it was going well until I ran into this bug that has perplexed me for hours and I was hoping you guys can help. I'm sure my program is riddled with problems so any help, even if it doesn't concern my bug, will be greatly appreciated.
Now, onto the bug. I first look if the player has pushed 'S' and then present them with a difficulty choice. However, I only want the difficulty to be 1 - 10. When the difficulty inputted it within the boundaries, the program works fine. It's when the number is outside of 1 - 10. For some reason the rest of the program after it is triggered, even though I have an if statement checking gameStarted, which is by default false and is only turned on by the difficulty being within bounds.
Thanks for reading this far. I hope you understand and can help me with my problem. Again, I know this is not the best way to do this, so please give me suggestions. Thanks!