Solitaire in Rails