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