Update operations.cpp

swapping control should not overwrite the previous position