He wins the competition by tricking his opponent onto his magical ship, and by commanding the ship to take him to the end of the world.
In the competition, he wins by deceiving his rival onto a ship with mystical powers and then directing it to the farthest point on Earth.