The collision detection between the player and enemies might not be pixel-perfect or could be too sensitive.
Suggestion:
Review and improve the collision logic using Pygame's built-in methods (e.g., pygame.sprite.collide_rect or mask-based collisions).
Fix any false positives/negatives in hit detection.
Optimize performance if needed.