the version with corner search, expand nodes as 865