software that analyzes a tic-tac-toe board of size n*n.