 Complete the following phrase:  Upon graduation, Rains was commissioned as a second lieutet in the infantry. Rains served in the Seminole Wars and was promoted to captain on December 25, 1837, and brevetted major on April 28, 1840, for his service against the Seminoles near Fort King, Florida, where he routed a superior force, and was twice severely wounded. One of his wounds was considered mortal, and several obituary notices of him were published, however he survived the wounds. Rains took part in the Mexican War and was engaged in the defense of Fort Brown in May 1846. When General Pedro de Ampudia demanded the surrender of the fort, Rains cast the deciding vote against surrender in a council of officers. Following the 