code: def reward_goal(self):
          
          if not 'goal' in self.mode:
              return
          mode = self.mode['goal']
          if mode and mode['reward'] and self.__test_cond(mode):
              if mode['reward'] > 0:
                  self.logger.info("Escaped!!")
              self.player.stats['reward'] += mode['reward']
              self.player.stats['score'] += mode['reward']
  
              self.player.game_over = self.player.game_over or mode['terminal']
docs: Add an end goal reward