basic attack turn function working