Finding card's position after swapping (card game with C++)