refine code to print out nodes expanded, nodes number, and running time