after a long year of fighting as a mercenary for the austrian emperor maximilian he found himself on the losing side of yet another unpopular war , but then found work as the personal bodyguard for a rich mexican landowner where the money was good .