Simulation-based Reasoning for planning expert systems