implemented loop for ball catching