HELP WITH HIGHSCORE

I am making a card game, and I would like to be able to have a scene with a high score where the user completes the card game in the least amount of taps and in the least amount of time. Anything helps. Thanks

On every tap add + 1 to an attribute. same with timer, every second increase another attribute. When game over save these using save attribute as score timer And score tap. Make another 2 attributes hiscore tap and hiscore timer, make them zero. At the end of game check whether hiscore < score or not, if yes, then put score tap and timer value into hiscore. And save again.