Control What You Can Intrinsically Motivated Task-Planning Agent