If the captain's utmost goal was to preserve his ship from sinking, he would have kept it in the harbor.

If the greatest goal of the captain was to preserve his ship from sinking, he would have kept it in the harbor.