public void Open(int raceId, string type, int length, string route, int pricePool, int goldTimeOrLaps = 0) { var race = RaceFactory.GenerateRace(type, length, route, pricePool, goldTimeOrLaps); races[raceId] = race; }