Update main.cpp

add function another_direction_no_affect
check whether numbers could merge originally after another direction
detail on google doc