This is an example of a basic interactive graphic: some balls, some walls,
and some falls collisions:
Standard fare: shoot ball, get points, and for good measure the pegs move.
Note that this might run terribly on a slower computer or a laptop, because there is no quad-tree based collision detection: right now the ball checks for intersections with every peg on the board, every frame, which is a little over the top, and wastes a fair bit of CPU!