updated controller for checking and removing dead players.