The computer knows how to win when there are two squares left on the board