Add: algorithm for ball hits