adding logic for respawn with invicibility

respawn check for invincibility