A chess game is, in the end, a massive tree of all possible moves that can be made. Once computers are powerful enough to simulate all those possible moves, they can be sure of winning (or at least not lose) every game against a human starting from move #1. Just like tic-tac-toe.