fixed the game immediately stopping