implemented calc-game-won and calc-game-over