solved dead player problem