Tic-Tac-Toe problem solved.