GCJ tic-tac-toe verification