debug building block dfs

add a global variable "candidates"