If it was the wire coming from the clutch handle and not the turn signal/light switch assembly, then it is your safety switch wire. It allows you to crank the bike in gear with the clutch held in. I bypassed mine as it was also broken. You being new to bikes and at first perhaps prone to forget might need to fix or replace it.