Changed Assets.endTheGame() to Assets.hasSomethingFailed().