}
public void testWhiteToPlay() {
try {
String data = "(;GM[1]FF[3]SZ[4]HA[0];W[cc])";
SGFParser parser = new SGFParser(data);
SGFNode tree = parser.parse();
DocumentedGame game = new DocumentedGame(tree);
assertEquals(Board.WHITE, game.colorToPlay);
game.next();
assertEquals(game.board.get(2, 2), Board.WHITE);
data = "(;PW[White]PB[Black];AB[pn](;B[rr];W[rs](;B[sr])(;B[ss];W[sr])(;B[qr];W[sr])(;B[rq];W[sr]))(;B[rs];W[rr])(;B[sr];W[rr])(;B[ss];W[rr]))";
parser = new SGFParser(data);
tree = parser.parse();
game = new DocumentedGame(tree);
assertEquals(SGFMove.BLACK, game.colorToPlay);
game.next();
assertEquals(SGFMove.BLACK, game.colorToPlay);
game.next();