Update main.cpp

test whether the column would be moved with up or down
add functio column_full