public void Execute()
 {
     if (!game.returnPause())
     {
         game.setPause(true);
     }
     else
     {
         game.setPause(false);
     }
 }
 public void Execute()
 {
     if (game.returnCanPause())
     {
         if (!game.returnPause())
         {
             SoundEffectFactory.Pause();
             game.setPause(true);
             game.setCanPause(false);
         }
         else
         {
             game.setPause(false);
             game.setCanPause(false);
         }
     }
 }