public List <Player> GetPlayerPool()
        {
            PlayerFactory factory;

            using (var db = new FMDraftEntities1())
            {
                foreach (string division in divisions)
                {
                    var players = from p in db.Players
                                  where p.Clubs.Divisions.DivisionName.Equals(division)
                                  select p;
                    foreach (var player in players)
                    {
                        if (player.Position.Equals("GK"))
                        {
                            factory = GoalkeeperFactory.GetInstance();
                            playerPool.Add(factory.GetPlayer(player, valuta));
                        }
                        else
                        {
                            factory = OutfieldPlayerFactory.GetInstance();
                            playerPool.Add(factory.GetPlayer(player, valuta));
                        }
                    }
                }
            }
            return(playerPool);
        }
        public static GoalkeeperFactory GetInstance()
        {
            if (instance == null)
            {
                instance = new GoalkeeperFactory();
                return(instance);
            }

            return(instance);
        }