Highscore problem

it seems that the code return me always the last score not the high one
i saw all the examples on the site before i post this
any solutions?

thx in advance