Fixed the sprite glitches when zombies dying, cleaned code