Added code for ball capture motor