Text-based Gaps solitaire in Python