Just swap the entries in the array (after verifying one of them is zero), then you could either clear the whole screen and redraw all the numbers (easy but the game will flicker horribly, unless you can do all that during the vertical refresh, or if you can do double buffering), or if you have control over the display cursor then clear and redraw the four character spaces involved in the swap.