outwitting
To outwit someone is to beat them at their own game. You can outwit someone by using their own rules against them, or by using your own skills to defeat them.
She outwitted the other kids by using her knowledge of the rules to her advantage.
He outwitted the other kids by playing in their own game.