         if gameInProgress { needToSave = true }
     }
 
+
     // MARK: Game-specific Functions - Port of Peril
 
     @objc @IBAction func yazMagic(_ sender: Any) {
 
+        // Only show the Yaztromo aid window if the player is playing Port of Peril
         if let zplayer = player {
-            // Only show the Yaztromo aid window if the player is playing Port of Peril
-            if zplayer.gamekind == kGamePortPeril { window.beginSheet(yazWindow, completionHandler:nil) }
-        }
-
+            if zplayer.gamekind == kGamePortPeril {
+                window.beginSheet(yazWindow, completionHandler:nil)
+            }
+        }
     }
 
     @IBAction func cancelYazWindow(_ sender: Any) {

        if gameType == kGameDeathtrap { player!.gameName = "Deathtrap Dungeon" }
        if gameType == kGameCityThieves { player!.gameName = "City of Thieves" }

        if gameType != kGameCitadel && gameType != kGameTempleTerror {
            // Remove the Magic tab for all but Citadel of Chaos and Temple of Terror
            heldTabs["magicTabItem"] = magicTabItem!

        }
    }


    // MARK: NSTextDelegate Functions

    func textDidChange(_ notification: Notification) {
