//Dealing damage and removing units
    private bool dealDamage(UnitBase attacker, UnitBase defender)
    {
        if (!isInRange(attacker,defender.Position,attacker.AttackRange) || attacker.Player == defender.Player)
            return false;

        int distance = hexDistance(attacker.Position, defender.Position);
        if (distance > 1)
            attacker.AttackRanged(defender);
        else
            attacker.AttackMeele(defender);

        return true;
    }