stable planning version | still heuristic and action set could be refined