how does solitaire work