Hitting a wall
When the ball hits a wall of the box:
It doesn't always bounce in the complementary angle that you might normally expect.
Instead it:
Selects one of the four possible directions on a random basis
Attempts to bounce in that direction.