You would just use a global variable for 'high score' and compare if high score is between 100 and 200, show 1 star, between 200 and 300, show 2 stars etc. Global variable 'high score' will always be there and can always be compared to show the correct rating.