Command-line implementation of a solitaire cipher in Java (no GUI)