How to open and close a ball chain