public void checkScoreFor30SecGame(Player_Time player)
        {
            if (ListFor30SecGame.Count < 10)
            {
                ListFor30SecGame.Add(player);
            }
            else
            {
                Player_Time p = ListFor30SecGame[9] as Player_Time;
                if (player.tiles > p.tiles)
                {
                    ListFor30SecGame.RemoveAt(9);
                    ListFor30SecGame.Add(player);
                }
            }

            ListFor30SecGame.Sort();
            writeResults("scoresFor30SecGame.txt");
        }
        private void loadResults()
        {
            if (File.Exists("scoresFor1MinGame.txt"))
            {
                using (StreamReader reader = new StreamReader("scoresFor1MinGame.txt"))
                {
                    string line;
                    while ((line = reader.ReadLine()) != null)
                    {
                        string[]    part = line.Split(' ');
                        Player_Time p    = new Player_Time(part[1], part[2], Convert.ToInt32(part[3]));
                        ListFor1MinGame.Add(p);
                    }
                }
            }
            if (File.Exists("scoresFor30SecGame.txt"))
            {
                using (StreamReader reader = new StreamReader("scoresFor30SecGame.txt"))
                {
                    string line;
                    while ((line = reader.ReadLine()) != null)
                    {
                        string[]    part = line.Split(' ');
                        Player_Time p    = new Player_Time(part[1], part[2], Convert.ToInt32(part[3]));
                        ListFor30SecGame.Add(p);
                    }
                }
            }
            if (File.Exists("scoresFor100TilesGame.txt"))
            {
                using (StreamReader reader = new StreamReader("scoresFor100TilesGame.txt"))
                {
                    string line;
                    while ((line = reader.ReadLine()) != null)
                    {
                        string[] part    = line.Split(' ');
                        string   name    = part[1];
                        string   surname = part[2];
                        string[] times   = part[3].Split(':');
                        int      sec     = Convert.ToInt32(times[0]) * 60;
                        sec += Convert.ToInt32(times[1]);
                        Player_Tiles p = new Player_Tiles(name, surname, sec);
                        ListFor100Tiles.Add(p);
                    }
                }
            }
            if (File.Exists("scoresFor300TilesGame.txt"))
            {
                using (StreamReader reader = new StreamReader("scoresFor300TilesGame.txt"))
                {
                    string line;
                    while ((line = reader.ReadLine()) != null)
                    {
                        string[] part    = line.Split(' ');
                        string   name    = part[1];
                        string   surname = part[2];
                        string[] times   = part[3].Split(':');
                        int      sec     = Convert.ToInt32(times[0]) * 60;
                        sec += Convert.ToInt32(times[1]);
                        Player_Tiles p = new Player_Tiles(name, surname, sec);
                        ListFor300Tiles.Add(p);
                    }
                }
            }

            ListFor100Tiles.Sort();
            ListFor300Tiles.Sort();
            ListFor30SecGame.Sort();
            ListFor1MinGame.Sort();
        }