Refactorizing playfair_cipher.rb by adding preparing_encoding_decoding method and modifying encrypt and decrypt methods