public Leaderboards(ContentHolder content, int width, int height, Highscores hs)
            : base(content, width, height)
        {
            Items = new List<string>();
            scores = new List<string>();

            this.hs = hs;

            hst = new HighscoreTable();

            Active = false;
        }
        public void populateLeaderboard()
        {
            Thread thread;
            thread = new Thread(() => hst = hs.getScores("1", "TOP10"));
            thread.Start();

            thread.Join();

            for (int i = 0; i < hst.Names.Length; i++)
            {
                Items.Add(hst.Names[i]);
                scores.Add(hst.scores[i].ToString());
            }
        }