public void Open(int id, string type, int length, string route, int prizePool, int timeORlaps) { Race race = RaceFactory.Produce(type, length, route, prizePool, timeORlaps); if (race != null) { races[id] = race; } }