// a message before games starts
 private void GameStarting()
 {
     TextAnimator.AnimateText("Welsome to dungeons of Doom\nKill all monsters!\nObtain items\n", 50);
     TextAnimator.AnimateText("Good luck Hero", 50);
     Console.ReadKey();
     Console.Clear();
 }
        // prints the different scenarios depending on what the player faces inside the room
        private void EnterRoom()
        {
            Room    currentRoom = world[player.X, player.Y];
            Monster monster     = currentRoom.Monster;

            if (monster != null)
            {
                AttackResult result = monster.Attack(player);
                TextAnimator.AnimateText($"({monster.Name}) Health ({result.Attacker.Health}) damage player by {result.Damage}", 50);

                // Console.WriteLine($"({monster.Name}) Health ({result.Attacker.Health}) damage player by {result.Damage}");
                Console.ReadKey(true);


                //skeleton wont attack player if player are to healty, it will insted deal no damage and try to run away
                if (result.Damage == 0)
                {
                    TextAnimator.AnimateText("\nSkeleton tries to run away", 50);
                    Console.ReadKey();
                }

                // if player survived the attack or the skeleton tries to run away the player will fight back
                if (player.IsAlive)
                {
                    result = player.Attack(monster);

                    foreach (var item in player.Backpack)
                    {
                        if (item.Name == "Sword")
                        {
                            result.Damage += 5;
                        }
                    }
                    TextAnimator.AnimateText($"\nPlayer Damage Monster by {result.Damage}", 50);
                    //Console.WriteLine($"\nPlayer Damage Monster by {result.Damage}");
                    Console.ReadKey();
                }

                // if the monster died, the monster will be added to the backpack
                if (!monster.IsAlive)
                {
                    TextAnimator.AnimateText($"\n{currentRoom.Monster.Name} added to backpack", 50);
                    Console.ReadKey();
                    player.Backpack.Add(currentRoom.Monster);
                    currentRoom.Monster = null;
                }
            }

            // if there is a item in the current room the player steps into the item will be added to the backpack
            // however the item will be used on pickup, so in this case its more of a notice that the item have been picked up
            // might fix later
            if (currentRoom.Item != null)
            {
                TextAnimator.AnimateText($"{currentRoom.Item.Name} added to backpack", 50);
                player.Backpack.Add(currentRoom.Item);
                currentRoom.Item.Use(player);
                currentRoom.Item = null;
            }
        }
 // the gameOver method prints a player wins message if there is no more monsters on the map
 // prits You Died if player died and the game is over...
 // if key is pressed the game restarts
 private void GameOver()
 {
     Console.Clear();
     if (Monster.MonsterCount == 0)
     {
         TextAnimator.AnimateText("You have defeted all mosnters", 50);
         TextAnimator.AnimateText("Hero wins!", 50);
         Console.ReadKey();
         Play();
     }
     else if (!player.IsAlive)
     {
         TextAnimator.AnimateText("You Died", 50);
     }
     Console.ReadKey();
     Play();
 }