My solution to solitaire cipher