added dyanamic creation of json from a class, inside HighScores() class