Added conditions to attackMove