public GameState(Game1 game, GraphicsDevice graphicsDevice, ContentManager content, int levelnumber) : base(game, graphicsDevice, content)
        {
            MediaPlayer.Stop();

            collisiondetect = new CollisionDetection();
            LoadSprites();
            InitializeGameObject();
            Levels = new LevelPicker(loadmapcontent(), hero, collisiondetect);

            collisiondetect.walls = Levels.GetActiveWereld().ActiveRoom.GetCollisions();
            hitdetection          = new HitDetections(hero, Levels.GetActiveWereld().ActiveRoom.enemies);

            SetStartingLevel(levelnumber);
            MakeDeathScreen();
            MediaPlayer.Play(gameBack);
        }
        public override void Update(GameTime gameTime)
        {
            hero.Update(gameTime);
            collisiondetect.walls = Levels.GetActiveWereld().ActiveRoom.GetCollisions();

            Levels.Update(gameTime);

            hitdetection.update(Levels.GetActiveWereld().ActiveRoom.enemies);

            //check victory
            if (Levels.Done())
            {
                _game.ChangeState(new VictoryState(_game, _graphicsDevice, _content, levelnumb));
            }
            else if (hero.status == CharState.death)
            {
                // death screen
                UpdateDeath(gameTime);
            }
        }