Added debug print when goal accomplished