Erase the old ball and draw the new ball
We have a green ball moving across a black background.
It is easy to erase the old image of the ball before drawing a new image at the new location.
(It would be more difficult to erase the old image if the ball were moving across a background consisting of something other than a solid color.)