the distraught and defeated texians traipsed into the courtyard , where they were held for a few hours , and then the general commanding the enemy forces - his name was urrea - had ordered them all into the chapel .