Route selection through a dynamic ice field using the maximum principle