Expandable tic-tac-toe for Java.