Generalized Tic-Tac-Toe