Save the current coordinates of the ball

The moveBall function in Listing 4 begins by: