Sending simulator messages (such as when the user wins the game) to the outside of the iframe may be useful here: