they succeeded in rigging a jury foremast , main and mizzen topmasts and to fish the bowsprit and after four days working flat out , nelson declared that the vanguard was at last ship shape and ready to sail .