added handling of player crash situation