Star Trek has a running theme of the human vs the logical with Dr. McCoy often berating Spock for lacking emotion, especially in the final scenes.
Here, I take it that the writers are simply showing that being human is no barrier to defeating a logician in a game where one might think logic would help.
(In one sense, chess is already 4d as one requires the dimension of time to play!)