added ttt_stop command
generalized tictactoe to mnkpq games