Implements the moveSkillToCategory function