for (int i=0 ; i<Board.VERT_DIM ; i++)
generateForRow(dir, i, model, letters);
}
private void generateForRow(Direction dir, int row, AIBoardModel board, Rack letters) {
Location square = (dir.equals(Direction.ACROSS) ? new LocationImpl(row, 0) : new LocationImpl(0, row));
while (board.contains(square)) {
if(board.isAnchorSquare(square.getV(), square.getH()))
generateForSquare(dir, square, board, letters);
dir.applyTo(square);
}