finished writing the decoding method. Tested to accurately reverse the code with the correct password