adding exhaustive structure mapping using A*