// TODO: Allow a custom state machine to be plugged into the GameServer so that we can
// simulate games using this tool with custom state machines, to verify they're sane.
final Set<GdlSentence> oldContents = new HashSet<GdlSentence>();
final int[] nState = new int[1];
theServer.addObserver(new Observer() {
@Override
public void observe(Event event) {
if (event instanceof ServerNewGameStateEvent) {
MachineState theCurrentState = ((ServerNewGameStateEvent)event).getState();
if(nState[0] > 0) System.out.print("State[" + nState[0] + "]: ");