testEndAttack implemented