How was Texas able to defeat the Mexican army?