define movement and attack states