First pass at solitaire homework.