check if a node needs to move
check if a node needs to move2