check move destination and origin