Tic-Tac-Toe coding challenge