Write points when game is ended with back button.