Added check for animationstate in Block.canMove