def step(self, state, action, reward, next_state, done):
    self.memory.add(state, action, reward, next_state, done)
    self.t_step = ((self.t_step + 1) % UPDATE_EVERY)
    if (self.t_step == 0):
        if (len(self.memory) > BATCH_SIZE):
            experiences = self.memory.sample()
            self.learn(experiences, GAMMA)
def step(self, state, action, reward, next_state, done):
    self.memory.add(state, action, reward, next_state, done)
    self.t_step = ((self.t_step + 1) % UPDATE_EVERY)
    if (self.t_step == 0):
        if (len(self.memory) > BATCH_SIZE):
            experiences = self.memory.sample()
            self.learn(experiences, GAMMA)