Implemented reset-game functionality at game end.