Fixing player invulnerability when hit