Fix game end reset bug

Fix: unable to reset after game end.