mod solitaire fuction
Basic tests pass, big conversion to index 1 logic