updated highscorestate with renderings outside the for loop.