Compressor / mag motor control issues

Okay, took it apart again to look at the control section of it, didn't see anything corroded or looking out of place, but did notice from the design that the plastic carrier that controls the switch moved really easy. Since we were supposed to be moving shortly after I got the compressor, I mounted the control on the frame of the compressor to save some hassle in moving it. Just to see what would happen, I moved it and mounted the control box to the wall next to it thinking maybe the vibration on startup was causing the plastic carrier to bounce making the switch open and close. After I moved it and got everything wired back up, viola, no more issues. Starts right up without the on and off behavior and hums right along.

Thanks for your suggestions and help! I don't think I would have had the courage to take it apart and figure out how it works without your advice and encouragement.