ball throwing logic error fix