Python-based tic-tac-toe for the terminal, supporting boards of arbitrary size (n x n)