Updated SmartAgent to recognize a single Goal State