solved the attacking+moving bug issue