add validMove function
merge core