Add some functions in valid_move?.