 If he wouldn't have met the cup there, then he wouldn't have been interpreting of the dreams by the most powerful man in the world. And by doing that, 13 years of all that adversity was a part of God's sovereign plan to get the right man at the right place at the right time for his good and God's glory.