updating score when game finished