Discussion and sample code

Program displays a ball bouncing around inside of a box.

The ball is allowed to move in only four directions: