How do you pick a ball by a robot arm and place in hole?

first use of one motor at chasis for control of gripper nad one motor control of up and down of gripper set and then this two motor control by motor shiled and then control of motor by remote control