update mastery tree