he knew how important this was to james so he got up and went through the grisly task of searching all the dead bodies , both men and horses for anything that might tell them what they needed to know .