You could set up Filled Regions where you want the ball not to go, then use a Collision > Physical Response event for the ball that when the ball collides with the Filled Regions, it would bounce off. (You could use the "Final velocity multiplier" to change how the ball collides with the walls. Just experiment with the settings until they are satisfactory.)
I'm not exactly sure what you want, so I'm hoping this has helped you.