@Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Subgoal subgoal = (Subgoal) o;

        if (condition != null ? !condition.equals(subgoal.condition) : subgoal.condition != null) return false;
        if (step != null ? !step.equals(subgoal.step) : subgoal.step != null) return false;

        return true;
    }