matching_of_five_directions