Mating a ball joint while containing it

hey all,

I'm creating this arm assembly.

It has a ball joint on the end, I need it to move freely while taking collisions into considerations.

My problem is its "holder" cannot swing past the brackets shown.

Any ideas?

Side Note: I cannot have a width mate nor a parallel mate for the angle on the ball joint holder is essential.

SolidworksAssemblies