// evaluate end state public void Stop() { Console.WriteLine("Total points: " + totalPoints); if (totalPoints > pointThreshold) { prize = factory.createGadget(); Console.WriteLine("You won a " + prize.GetType().Name + "!!!"); prize.doStuff(); } else { Console.WriteLine("You lost the game :("); } Console.ReadKey(); }