2D and 3D versions of Tic_Tac_Toe