adding player death function