added code to delete a player