Fixing bug where game crashes after beating the game