Simulation of Hitting the ball against the wall