fix diag pattern search by goal block

add forward path pattern search upto 15 block
fix diag pattern search by adding goal block forward