// ---
System.out.println("Playing at: " + state.viewUrl);
final Bot bot = new M00Bot();
final HashMap<String, String> ps = new HashMap<String, String>(1);
ps.put("key", key);
boolean finished = state.game.finished;
while (!finished) {
ps.put("dir", bot.nextMove(state).toString());
System.out.print(".");
try {
state = IO.fromPost(ps, "UTF-8", state.playUrl, "UTF-8",