How earbuds get tangled up