Thanks to all of the constructive criticism. I have now fixed these errors:
-The collision detection with the boundaries works better now
-The score does not disappear when you lose a point
-The music does not loop over itself anymore
Thank you for all of your comments, and I will endeavour to fix anymore problems you may encounter