Tic-Tac-Toe implemented in J