private void CarModel_GameEnd(object sender, GameEndEventArgs e) { var fileMgr = new FileReadWriteManager(); fileMgr.WriteOutputToFile(e.CarFoundResults.ToList()); Environment.Exit(0); }