refactored reposition deadplayers method for readability