some adjustments, AI now defends , modificated attackfunction