Moved limit switches
Made limit switches non-static for better use in main, and applied to mGrab