added reset function if player dies