'Find all actions that the current_player has done in the past, taking into
account the fact that history starts with BLACK when there are no
handicaps or with WHITE when there are.'

def is_positional_superko(self, action):

    if ((len(self.handicaps) == 0) and (self.current_player == BLACK)):
        player_history = self.history[0::2]
    elif ((len(self.handicaps) > 0) and (self.current_player == WHITE)):
        player_history = self.history[0::2]
    else:
        player_history = self.history[1::2]
    if ((action not in self.handicaps) and (action not in player_history)):
        return False
    state_copy = self.copy()
    state_copy.enforce_superko = False
    state_copy.do_move(action)
    if (state_copy.current_hash in self.previous_hashes):
        return True
    else:
        return False
