There is a fair bit of new code below as I've increased the pace of
change slightly, since this is much
of a repeat of steps we've done before: I changed the
Ball prototype
to take into account collisions
with the paddle (or not), added a new sound effect and
prepared for having a game over result.
Take your time and go over the code and make sure you understand everything.