Changed delay (sleep) to 0.5 seconds
Added a comment section of each axis
added "import pygame" (necessary?)
Added "pygame.event.get()" and ".pump()" to while loop (because the internet told me to)