'Args:
nr_repeat (int): trigger the \'action\' after this many of repeated action.
action: the action to be triggered to get out of stuck.'

def __init__(self, player, nr_repeat, action):

    super(PreventStuckPlayer, self).__init__(player)
    self.act_que = deque(maxlen=nr_repeat)
    self.trigger_action = action
