renamed variables
update highscore only if necessary