def METHOD_NAME(self):
    if startState.player == X:
        opponent = O
    else:
        opponent = X
    for locations in winningStates:
        if self.board[locations[0]] == opponent and self.board[locations[1]] == opponent and self.board[locations[2]] == opponent:
            return True
    return False