 
         var roll: Int = Int(arc4random_uniform(6) + arc4random_uniform(6)) + 2
         roll = roll + 3 - testSkillMod.indexOfSelectedItem
-        needToSave = true
-
         var sk = player!.skill
 
         if player!.gamekind == kGameHouseHell {

        }

        showAlert((roll <= sk ? "You were skilfull..." : "You fumble the test..."), "", true)
    }

    @IBAction func rollDice(_ sender: Any) {

        if let asender = (sender as? AppDelegate) {
            if asender == self {
                // We are here through a timer call
                if rollCount > 0 {
                    var roll: Int = Int(arc4random_uniform(6))
                    dieOne.image = dice[roll]


        if !gameInProgress || player == nil { return }

        if let button = (sender as? NSButton) {
            if button == foodEatButton {
                if player!.provisions > 0 {
                    player!.provisions = player!.provisions - 1
                    foodAmountField.stringValue = "\(player!.provisions)"
                    player!.stamina = player!.stamina + 4
                    if player!.stamina > player!.initialStamina { player!.stamina = player!.initialStamina }
                    needToSave = true
                    updateStats()
                }
            }
        }

        // This is called when text ends editing which happens when it loses focus, ie.
        // even when the NSTextField hasn't been used but we're switching tabs
        if let textField = (sender as? NSTextField) {
            if textField == foodAmountField {
                // Only change the gold value if it is different
                if player!.provisions != foodAmountField.integerValue {
                    player!.provisions = foodAmountField.integerValue
                    if player!.provisions < 0 { player!.provisions = 0 }
                    needToSave = true
                }
            }
        }
    }
