Refactoring restartGame() and make resetGame()