Added end-game reset functionality.