Listen I cannot define for you immediate purpose of what is happening in your life right now. If you come to me and say why has God allowed this to happen, why doesn't God stop this, why does God not mover in here and change things? I will be honest with you, I cannot give you immediate reason but I can give you the ultimate purposes behind it all: so that in all things in my life, as in your life, Jesus Christ might stand first, preeminent, supreme.
"... so that at the name of Jesus every knee should bow, in heaven and on earth and under the earth, and every tongue confess that Jesus Christ is Lord, to the glory of God the Father. "Philippians 2:10-11 (ESV)