Added illegal moving state for x and y