I don't have time right now to look over your project, but here's how to do it!
Create 2 global variables,
SCORE
BESTSCORE
when you run your game you will operate with the score(init with 0), and at the end of the game, compare score with bestscore, if score > bestscore then bestscore = score