Update main.cpp

add function another_direction_no_affect
check whether numbers could merge originally after another direction
detail on google doc
Merge pull request #6 from fwpp/patch-6

Update main.cpp