Implemented planning logic: check what other already achieved states would be affected by applying this rule, and rebuild their connections