5. Program the Losing Condition