public string[,] Level1Creation(Hero h)
        {
            MapCreate m   = new MapCreate();
            var       map = m.FloorCreate(h);

            MapCreate.CreateRoom(3, 3, 5, 9, map);
            MapCreate.CreateRoom(2, 8, 7, 10, map);
            MapCreate.CreateRoom(4, 14, 7, 12, map);
            m.CreateHeroMark(h.CoordinateX, h.CoordinateY, 0, 0, map, h.KeyAvailability, h);
            //h.HeroAtLevel1 = true;
            MapCreate.CreateDoorMark(5, 8, map);
            MapCreate.CreateDoorMark(7, 14, map);
            MapCreate.CreateDoorMark(4, 22, map);
            MapCreate.CreateMonsterMark(5, 5, map);
            MapCreate.CreateMonsterMark(3, 14, map);
            MapCreate.CreateMonsterMark(5, 22, map);
            MapCreate.CreateStairsMark(3, 22, map);
            m.ShowMap(map);
            return(map);
        }
        public void ControlButtons(Hero hero, string[,] map1, string[,] map2)
        {
            bool flag = true;

            while (flag)
            {
                if (hero.HeroAtLevel1)
                {
                    map = map1;
                }
                else if (hero.HeroAtLevel2)
                {
                    map = map2;
                }
                switch (Console.ReadKey(true).Key)
                {
                case ConsoleKey.Backspace:
                    flag = false;
                    break;

                case ConsoleKey.A:
                    Console.Clear();
                    if (mapObj.CreateHeroMark(hero.CoordinateX, hero.CoordinateY - 1, hero.CoordinateX, hero.CoordinateY, map, hero.KeyAvailability, hero))
                    {
                        hero.CoordinateY -= 1;
                    }
                    mapObj.ShowMap(map);
                    break;

                case ConsoleKey.D:
                    Console.Clear();
                    if (mapObj.CreateHeroMark(hero.CoordinateX, hero.CoordinateY + 1, hero.CoordinateX, hero.CoordinateY, map, hero.KeyAvailability, hero))
                    {
                        hero.CoordinateY += 1;
                    }
                    mapObj.ShowMap(map);
                    break;

                case ConsoleKey.S:
                    Console.Clear();
                    if (mapObj.CreateHeroMark(hero.CoordinateX + 1, hero.CoordinateY, hero.CoordinateX, hero.CoordinateY, map, hero.KeyAvailability, hero))
                    {
                        hero.CoordinateX += 1;
                    }
                    mapObj.ShowMap(map);
                    break;

                case ConsoleKey.W:
                    Console.Clear();
                    if (mapObj.CreateHeroMark(hero.CoordinateX - 1, hero.CoordinateY, hero.CoordinateX, hero.CoordinateY, map, hero.KeyAvailability, hero))
                    {
                        hero.CoordinateX -= 1;
                    }
                    mapObj.ShowMap(map);
                    break;

                default:
                    break;
                }
            }
        }