Switch puzzle