move checker function