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

You should change that position as 3