private void fight(Character defender, Character attacker) {
        String defenderName = defender.getName();
        String attackerName = attacker.getName();
        if (player == defender) {
            defenderName = "You";
        } else if (player == attacker) {
            attackerName = "You";
        }
        System.out.println(attackerName + " unleashed an attack!");
        if (random.nextInt(2) == 1) {
            int damage = (int) Math.round(attacker.getDamage() / 2 + random.nextInt(attacker.getDamage() / 2));
            defender.setHealth((int) defender.getHealth() - damage);
            System.out.println(attackerName + " hit! The hit causes a loss of " + damage + " hit points!");
            System.out.println(defenderName + ": " + defender.getHealth() + " hit points left!");
            if (defender.getHealth() <= 0) {
                System.out.println(defenderName + " fell to the ground!");
                isDead(defender);
            }
        } else {
            System.out.println(attackerName + " missed!");
        }
    }