Tic-Tac-Toe Code