Bouncing balls

how can i make the ball bounce indepently in any direction then on hitting another object in tht movie it should change it course accordingly.i have done it with two blocks placed either sides but the ball keeps moving in a staight line .
Suppose if i place blocks on all the sides how can i make it move in all the directions instead of just one.