I am trying to make a code for space shooter

an airplane shoots enemy and kills it, its not working
replit users or anyone else who know pygame, pls help. I tried the code in the link : Space shooter - Replit