If the player is currently casting spell, I want to try to block his move command. how can i do that?