removed glitch after exiting a game