Moved clearInterval(timer) to resetGame()