Added hit ball function