far from being punished for mutiny and desertion , gomez was rewarded with an appointment as chief pilot of the casa de contratacin and mesquita , cast as magellans villainous accomplice , remained in custody .