Once you've filled all of the squares with cards, remove any combination that adds up to 10.
You lose when you draw a face card, but cannot place it because all of the face card locations are full. You win if all of the face cards are put into their designated squares.