"to have what it takes" is an idiom that means to have the skill, intelligence, etc. to do/achieve something.
The second speaker is affirming that they do have the skill to beat the person who asked the question in whatever game/challenge they are speaking about.