made player and obstacles die when player dies