How to move a column 1 step Ahead every time when we run the program