made player invulnerable before taking away a heart and implemented flinching