public int CalculateScore()
        {
            int pts = 0;

            foreach (var c in flipper.Items)
            {
                if (c.GetType() == typeof(Card))
                {
                    Card crd = (Card)c;
                    if (crd.IsAlive())
                    {
                        pts += crd.Hero.Points;
                    }
                }
            }
            Mapper.UpdateScore(pts, App.GameSetting.TotalPoints);
            GameFlipView.UpdateScore(pts, App.GameSetting.TotalPoints);
            return(pts);
        }
        private void UpdatePoints()
        {
            //calculate TOTAL points from dataset
            App.GameSetting.TotalPoints = App.carddatasetselected.Sum(x => x.Hero.Points);

            App.GameSetting.CurrentPoints = 0;  //reset to calculate
            foreach (var it in flipper.Items)
            {
                if (it.GetType().Equals(typeof(Card)))
                {
                    Card c = it as Card;
                    if (c.IsAlive())
                    {
                        App.GameSetting.CurrentPoints += c.Hero.Points;
                    }
                }
            }
            GameFlipView.UpdateScore(App.GameSetting.CurrentPoints, App.GameSetting.TotalPoints);
            Mapper.UpdateScore(App.GameSetting.CurrentPoints, App.GameSetting.TotalPoints);
        }