bool getSquare(String square) { int sqIndex = ChessnutProtocol.squares.indexOf(square.toLowerCase()); if (sqIndex == -1) throw Exception("Square not found."); return _pattern[sqIndex]; }