Added IR Sesnor Code, stops collection and catching when a ball is detected.