swapping the two numbers on top of the pile