computer simulation of bat-ball collisions