Fixed overflow issues in solitaire.