swap letter a with letter d move position 6 to position 4 move position 5 to position 1 swap letter h with letter e rotate based on position of letter a move position 6 to position 2 reverse positions 0 through 1 rotate based on position of letter h rotate based on position of letter g rotate based on position of letter h reverse positions 4 through 7 swap letter a with letter f swap position 2 with position 7 move position 7 to position 5 reverse positions 0 through 5 rotate based on position of letter f rotate right 4 steps swap position 3 with position 0 move position 1 to position 2 reverse positions 4 through 6 swap position 3 with position 5 swap letter a with letter c swap position 5 with position 2 swap position 7 with position 2 move position 2 to position 5 rotate based on position of letter h rotate right 2 steps swap position 3 with position 4 move position 0 to position 1 reverse positions 1 through 7 reverse positions 1 through 4 rotate based on position of letter b rotate right 7 steps rotate left 0 steps swap position 6 with position 1 reverse positions 1 through 3 reverse positions 0 through 3 move position 0 to position 4 rotate based on position of letter f reverse positions 0 through 7 reverse positions 0 through 1 move position 1 to position 7 move position 7 to position 6 rotate based on position of letter b reverse positions 3 through 5 reverse positions 0 through 3 swap letter c with letter h reverse positions 3 through 5 swap position 3 with position 6 swap letter d with letter g move position 5 to position 6 swap position 6 with position 2 rotate right 5 steps swap letter e with letter g rotate based on position of letter e rotate based on position of letter c swap letter g with letter e rotate based on position of letter b rotate based on position of letter b swap position 0 with position 2 move position 6 to position 0 move position 5 to position 0 rotate left 2 steps move position 0 to position 5 rotate left 7 steps swap letter b with letter g rotate based on position of letter d swap letter h with letter e swap letter d with letter c rotate based on position of letter f move position 5 to position 0 rotate left 5 steps swap position 0 with position 7 swap position 0 with position 3 rotate left 4 steps rotate left 1 step rotate right 6 steps swap position 0 with position 1 reverse positions 4 through 6 reverse positions 4 through 6 move position 6 to position 3 move position 7 to position 4 rotate right 4 steps swap letter g with letter d swap letter c with letter e swap letter e with letter h rotate right 5 steps rotate based on position of letter g rotate based on position of letter g rotate left 3 steps swap letter h with letter g reverse positions 0 through 4 rotate right 4 steps move position 6 to position 4 rotate based on position of letter c swap position 2 with position 6 swap position 7 with position 2 rotate right 1 step swap position 3 with position 1 swap position 4 with position 6