You have a function that is constantly running?
Interesting. Functions usually are called when needed, otherwise you are just doing a loop.
If the function resets the questions..., then you should only call the function at the end of the round.
If that is what you are doing, then, like suggested above, add an additional check before calling the function.
Make a Boolean gameOver = false
then, if gameOver = false, call your function at the end of the round to reset questions.
Once the game is over, set your Boolean to TRUE, and the function won't be able to be called any longer.
Does that help?