// Test the hasWon() method
 void testHasWon(Tester t) {
   resetPlayer();
   t.checkExpect(player.hasWon(), false);
   resetPlayer();
   player.score = 100000;
   t.checkExpect(player.hasWon(), true);
 }
 // test the worldEnd method
 void testWorldEnd(Tester t) {
   t.checkExpect(ctf.worldEnds().worldEnds, false);
   resetCTF();
   ctf.player.score = 300000;
   t.checkExpect(ctf.worldEnds().worldEnds, true);
   resetCTF();
   ctf.player.hunger = 0;
   t.checkExpect(ctf.worldEnds().worldEnds, true);
   resetCTF();
   ctf.player.speed = 0;
   t.checkExpect(ctf.worldEnds().worldEnds, true);
 }