prevent modal from popping up if the user isnt playing a game