So my friend made a square like this with this amount of cards in each pile
4 3 2 1
3 2
2 3
1 2 3 4
He then said that each line, horizontal and vertical, adds up to 10 cards. Then he asked me to pick a card from the cards left over after making the square and asked me to put it on any of the piles in the square. He then rearranged the cards and all the lines still added to 10 cards on each pile, how was it possible?