Update main.cpp

add function 

row_full(Grid info, int row)

test whether the row would be moved with left or right

before left direction, it would need to check certain row for keeping from being moved
Merge pull request #1 from fwpp/patch-1

Update main.cpp