## Random-Letter Decipher Program Problems.

Hey, everyone. I'm working off the code from an introductory programming course I took last semester to try and make a program to decipher a random-letter-placement cipher through frequency analysis, and I haven't quite gotten it to work. I believe I've accidentally deciphered, and accidentally re-ciphered, the text and printed that. Can you look over the four classes I have to see if you can pinpoint what I've done wrong? Thanks!

Java Code:
```public class AlphaData
{
String character;
double percent;

public AlphaData(String character, double percent)
{
this.character = character;
this.percent = percent;
}

public String getCharacter()
{
return character;
}

public double getPercent()
{
return percent;
}
}```
Java Code:
```import java.io.*;
import java.util.*;
public class CipherAlphabetInterpreter
{
public static AlphaData[] english, cipher;

CipherAlphabetInterpreter(AlphaData[] english, AlphaData[]cipher) throws IOException
{
this.english = english;
this.cipher = cipher;
}

public void orderBoth()
{

for(int i = 1; i < english.length; i++)
{

for(int j = 1; j < english.length ; j++)
{

AlphaData currentEnglish = english[j];
AlphaData currentCipher = cipher[j];
if(currentEnglish.getPercent() < english[j - 1].getPercent());
{
english[j] = english[j - 1];
english[j - 1] = currentEnglish;
}

if(currentCipher.getPercent() < cipher[j - 1].getPercent());
{
cipher[j] = cipher[j - 1];
cipher[j - 1] = currentCipher;
}
}
}
}

public void makeResults() throws IOException
{

Scanner cipherFile = new Scanner(new File("ciphertext.txt"));

while(cipherFile.hasNext())
{

String oneWord = cipherFile.next();
for(int i = 0; i < oneWord.length() - 1; i++)
{

String onePart = oneWord.substring(i, i + 1);
if(onePart.equals(" ") || onePart.equals(",") || onePart.equals(".") || onePart.equals("/") ||
onePart.equals("<") || onePart.equals(">") || onePart.equals("?") || onePart.equals(";") ||
onePart.equals("'") || onePart.equals(":") || onePart.equals("\"") || onePart.equals("[") ||
onePart.equals("]") || onePart.equals("\"") || onePart.equals("{") || onePart.equals("}") ||
onePart.equals("|") || onePart.equals("`") || onePart.equals("1") || onePart.equals("2") ||
onePart.equals("3") || onePart.equals("4") || onePart.equals("5") || onePart.equals("6") ||
onePart.equals("7") || onePart.equals("8") || onePart.equals("9") || onePart.equals("0") ||
onePart.equals("-") || onePart.equals("=") || onePart.equals("~") || onePart.equals("!") ||
onePart.equals("@") || onePart.equals("#") || onePart.equals("\$") || onePart.equals(" %") ||
onePart.equals("^") || onePart.equals("&") || onePart.equals("*") || onePart.equals("(") ||
onePart.equals(")") || onePart.equals("_") || onePart.equals("+") || onePart.equals(""))
{
System.out.print(onePart);
}

else
{
for(int j = 0; j < english.length; j++)
{
if(onePart.equalsIgnoreCase(cipher[j].getCharacter()))
{
System.out.print(english[j].getCharacter());
}
}
}
}
}
}
}```
Java Code:
```import java.io.*;
import java.util.*;
public class FrequencyAnalysis
{

Scanner englishFile = new Scanner(new File("plaintext.txt"));

Scanner cipherFile = new Scanner(new File("ciphertext.txt"));

ArrayList<String> englishArrayList = new ArrayList<String>(), cipherArrayList = new ArrayList<String>();

int a, b, c, d, e, f, g, h, i, j, k, l, m, n, o, p, q, r, s, t, u, v, w, x, y, z;

String[] alphabet = {"a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z"};

int[] numberOfEnglishOccurances = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};

int[] numberOfCipherOccurances = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0};

int totalEnglishLetters;

int totalCipherLetters;

double[] englishPercentage = new double[alphabet.length];

double[] cipherPercentage = new double[alphabet.length];

AlphaData[] leavingEnglishArray = new AlphaData[alphabet.length];

AlphaData[] leavingCipherArray = new AlphaData[alphabet.length];

FrequencyAnalysis() throws IOException
{
}

public void createEnglishArray()
{

while(englishFile.hasNext())
{

String oneWord = englishFile.next();

for(int i = 0; i < oneWord.length(); i++)
{

String onePart = oneWord.substring(i, i + 1);

if(onePart.equals(" ") || onePart.equals(",") || onePart.equals(".") || onePart.equals("/") ||
onePart.equals("<") || onePart.equals(">") || onePart.equals("?") || onePart.equals(";") ||
onePart.equals("'") || onePart.equals(":") || onePart.equals("\"") || onePart.equals("[") ||
onePart.equals("]") || onePart.equals("\"") || onePart.equals("{") || onePart.equals("}") ||
onePart.equals("|") || onePart.equals("`") || onePart.equals("1") || onePart.equals("2") ||
onePart.equals("3") || onePart.equals("4") || onePart.equals("5") || onePart.equals("6") ||
onePart.equals("7") || onePart.equals("8") || onePart.equals("9") || onePart.equals("0") ||
onePart.equals("-") || onePart.equals("=") || onePart.equals("~") || onePart.equals("!") ||
onePart.equals("@") || onePart.equals("#") || onePart.equals("\$") || onePart.equals(" %") ||
onePart.equals("^") || onePart.equals("&") || onePart.equals("*") || onePart.equals("(") ||
onePart.equals(")") || onePart.equals("_") || onePart.equals("+") || onePart.equals(""))
{
}

else
{

englishArrayList.add(onePart);

}

}

}

}

public void analyzeEnglishLetters()
{

for(int i = 0; i < englishArrayList.size(); i++)
{

for(int j = 0; j < alphabet.length; j++)
{

if(englishArrayList.get(i).equalsIgnoreCase(alphabet[j]))
{

numberOfEnglishOccurances[j]++;

totalEnglishLetters++;

}

else
{
}

}

}

}

public void createCipherArray()
{

while(cipherFile.hasNext())
{

String oneWord = cipherFile.next();

for(int i = 0; i < oneWord.length(); i++)
{

String onePart = oneWord.substring(i, i + 1);

if(onePart.equals(" ") || onePart.equals(",") || onePart.equals(".") || onePart.equals("/") ||
onePart.equals("<") || onePart.equals(">") || onePart.equals("?") || onePart.equals(";") ||
onePart.equals("'") || onePart.equals(":") || onePart.equals("\"") || onePart.equals("[") ||
onePart.equals("]") || onePart.equals("\"") || onePart.equals("{") || onePart.equals("}") ||
onePart.equals("|") || onePart.equals("`") || onePart.equals("1") || onePart.equals("2") ||
onePart.equals("3") || onePart.equals("4") || onePart.equals("5") || onePart.equals("6") ||
onePart.equals("7") || onePart.equals("8") || onePart.equals("9") || onePart.equals("0") ||
onePart.equals("-") || onePart.equals("=") || onePart.equals("~") || onePart.equals("!") ||
onePart.equals("@") || onePart.equals("#") || onePart.equals("\$") || onePart.equals(" %") ||
onePart.equals("^") || onePart.equals("&") || onePart.equals("*") || onePart.equals("(") ||
onePart.equals(")") || onePart.equals("_") || onePart.equals("+") || onePart.equals(""))
{
}

else
{

cipherArrayList.add(onePart);

}

}

}

}

public void analyzeCipherLetters()
{

for(int i = 0; i < cipherArrayList.size(); i++)
{

for(int j = 0; j < alphabet.length; j++)
{

if(cipherArrayList.get(i).equalsIgnoreCase(alphabet[j]))
{

numberOfCipherOccurances[j]++;

totalCipherLetters++;

}

else
{
}

}

}

}

public void calcPercentages() throws IOException
{

for(int i = 0; i < alphabet.length; i++)
{

englishPercentage[i] = 100 * (double)numberOfEnglishOccurances[i] / (double)totalEnglishLetters;

cipherPercentage[i] = 100 * (double)numberOfCipherOccurances[i] / (double)totalCipherLetters;

leavingEnglishArray[i] = new AlphaData(alphabet[i], englishPercentage[i]);

leavingCipherArray[i] = new AlphaData(alphabet[i], cipherPercentage[i]); //This piece may be the downfall of the code
}

CipherAlphabetInterpreter interpreter = new CipherAlphabetInterpreter(leavingEnglishArray, leavingCipherArray);

interpreter.orderBoth();

interpreter.makeResults();
}

public void writeResults() throws IOException
{

PrintWriter englishOut = new PrintWriter(new File("EnglishFreq.txt"));

PrintWriter cipherOut = new PrintWriter(new File("CipherFreq.txt"));

englishOut.println("Plaintext Frequency Analysis");

cipherOut.println("Ciphertext Frequency Analysis");

englishOut.println();

cipherOut.println();

englishOut.printf("%9s", "#");

cipherOut.printf("%9s", "#");

englishOut.printf("%9s\n", "%");

cipherOut.printf("%9s\n", "%");

for(int i = 0; i < alphabet.length; i++)
{

englishOut.printf("%1s", alphabet[i].toUpperCase() + ":");

cipherOut.printf("%1s", "?:");

englishOut.printf("%8s", numberOfEnglishOccurances[i]);

cipherOut.printf("%8s", numberOfCipherOccurances[i]);

englishOut.printf("%9.1f", englishPercentage[i]);

englishOut.println("%");

cipherOut.printf("%9.1f", cipherPercentage[i]);

cipherOut.println("%");

}

englishOut.printf("%10s", totalEnglishLetters);

cipherOut.printf("%10s", totalCipherLetters);

englishOut.close();

cipherOut.close();

}

public void printResults()
{

for(int i = 0; i < alphabet.length; i++)
{

System.out.printf("%1s", alphabet[i].toUpperCase() + ":");

System.out.printf("%6s", numberOfEnglishOccurances[i]);

System.out.printf("%9s", numberOfCipherOccurances[i]);

System.out.printf("%9.1f", englishPercentage[i]);

System.out.print("%");

System.out.printf("%9.1f", cipherPercentage[i]);

System.out.println("%");

}

System.out.printf("%17s", totalEnglishLetters + "     " + totalCipherLetters);

}
}```
Java Code:
```import java.io.*;
import java.util.*;
public class FrequencyAnalysisTester
{

public static void main(String[] args) throws IOException
{

FrequencyAnalysis attempt = new FrequencyAnalysis();

attempt.createEnglishArray();

attempt.analyzeEnglishLetters();

attempt.createCipherArray();

attempt.analyzeCipherLetters();

attempt.calcPercentages();

}
}```
Here's a screenshot of the beginning of the output of the code, which seems to be just a re-statement of the original ciphertext without spacing:

The input English file reads as this (for the use of creating your own file if you wish to test/modify the code):
Five score years ago, a great American, in whose symbolic shadow we stand,

signed the Emancipation Proclamation. This momentous decree came as a great

beacon light of hope to millions of Negro slaves who had been seared in the

flames of withering injustice. It came as a joyous daybreak to end the long

night of captivity.

But one hundred years later, we must face the tragic fact that the Negro is

still not free. One hundred years later, the life of the Negro is still

sadly crippled by the manacles of segregation and the chains of

discrimination. One hundred years later, the Negro lives on a lonely island

of poverty in the midst of a vast ocean of material prosperity. One hundred

years later, the Negro still languishes in the corners of American society

and finds himself an exile in his own land. So we have come here today to

dramatize an appalling condition.
And here's the ciphertext:
OAWKSSR AO JZ KXZ IY JAW IQZ MKIISZ IQKI AF WYJ TYAWT YW KXYHWV IQZ JYXSV MZIJZZW OXZZVYN KWV IRXKWWR IQZ VXKNKIAG KGQAZPZNZWIF AW FBKGZ JQAGQ YGGHXXZV AW XZGZWI JZZEF FQYHSV QKPZ NKVZ GSZKX IY HF KSS KF VAV IQZ FBHIWAE AW IQZ ANBKGI YO IQAF KVPZWIHXZ YW IQZ NAWVF YO NZW ZPZXRJQZXZ JQY KXZ KIIZNBIAWT IY NKEZ K VZIZXNAWKIAYW YO JQAGQ XYKV IQZR FQYHSV IKEZ FAWGZ ZKXSR AW NR IZXN YHX ZOOYXIF AW FBKGZ QKPZ MZZW HWVZX XZPAZJ JAIQ IQZ KVPAGZ YO IQZ PAGZ BXZFAVZWI JQY AF GQKAXNKW YO IQZ WKIAYWKS FBKGZ GYHWGAS JZ QKPZ ZLKNAWZV JQZXZ JZ KXZ FIXYWT KWV JQZXZ JZ KXZ WYI JQZXZ JZ NKR FHGGZZV KWV JQZXZ JZ NKR WYI WYJ AI AF IANZ IY IKEZ SYWTZX FIXAVZFIANZ OYX K TXZKI WZJ KNZXAGKW ZWIZXBXAFZIANZ OYX IQAF WKIAYW IY IKEZ K GSZKXSR SZKVAWT XYSZ AW FBKGZ KGQAZPZNZWI JQAGQ AW NKWR JKRF NKR QYSV IQZ EZR IY YHX OHIHXZ YW ZKXIQ A MZSAZPZ JZ BYFFZFF KSS IQZ XZFYHXGZF KWV IKSZWIF WZGZFFKXR MHI IQZ OKGIF YO IQZ NKIIZX KXZ IQKI JZ QKPZ WZPZX NKVZ IQZ WKIAYWKS VZGAFAYWF YX NKXFQKSSZV IQZ WKIAYWKS XZFYHXGZF XZDHAXZV OYX FHGQ SZKVZXFQAB JZ QKPZ WZPZX FBZGAOAZV SYWTXKWTZ TYKSF YW KW HXTZWI IANZ FGQZVHSZ YX NKWKTZV YHX XZFYHXGZF KWV YHX IANZ FY KF IY AWFHXZ IQZAX OHSOASSNZWI XZGYTWAUAWT IQZ QZKV FIKXI YMIKAWZV MR IQZ FYPAZIF JAIQ IQZAX SKXTZ XYGEZI ZWTAWZF JQAGQ TAPZF IQZN NKWR NYWIQF YO SZKVIANZ KWV XZGYTWAUAWT IQZ SAEZSAQYYV IQKI IQZR JASS ZLBSYAI IQAF SZKV OYX FYNZ IANZ IY GYNZ AW FIASS NYXZ ANBXZFFAPZ FHGGZFFZF JZ WZPZXIQZSZFF KXZ XZDHAXZV IY NKEZ WZJ ZOOYXIF YW YHX YJW OYX JQASZ JZ GKWWYI THKXKWIZZ IQKI JZ FQKSS YWZ VKR MZ OAXFI JZ GKW THKXKWIZZ IQKI KWR OKASHXZ IY NKEZ IQAF ZOOYXI JASS NKEZ HF SKFI JZ IKEZ KW KVVAIAYWKS XAFE MR NKEAWT AI AW OHSS PAZJ YO IQZ JYXSV MHI KF FQYJW MR IQZ OZKI YO KFIXYWKHI FQZBKXV IQAF PZXR XAFE ZWQKWGZF YHX FIKIHXZ JQZW JZ KXZ FHGGZFFOHS MHI IQAF AF WYI NZXZSR K XKGZ FBKGZ AF YBZW IY HF WYJ KWV YHX ZKTZXWZFF IY FQKXZ AIF NZKWAWT AF WYI TYPZXWZV MR IQZ ZOOYXIF YO YIQZXF JZ TY AWIY FBKGZ MZGKHFZ JQKIZPZX NKWEAWV NHFI HWVZXIKEZ OXZZ NZW NHFI OHSSR FQKXZ A IQZXZOYXZ KFE IQZ GYWTXZFF KMYPZ KWV MZRYWV IQZ AWGXZKFZF A QKPZ ZKXSAZX XZDHZFIZV OYX FBKGZ KGIAPAIAZF IY BXYPAVZ IQZ OHWVF JQAGQ KXZ WZZVZV IY NZZI IQZ OYSSYJAWT WKIAYWKS TYKSF OAXFI A MZSAZPZ IQKI IQAF WKIAYW FQYHSV GYNNAI AIFZSO IY KGQAZPAWT IQZ TYKS MZOYXZ IQAF VZGKVZ AF YHI YO SKWVAWT K NKW YW IQZ NYYW KWV XZIHXWAWT QAN FKOZSR IY IQZ ZKXIQ WY FAWTSZ FBKGZ BXYCZGI AW IQAF BZXAYV JASS MZ NYXZ ANBXZFFAPZ IY NKWEAWV YX NYXZ ANBYXIKWI OYX IQZ SYWTXKWTZ ZLBSYXKIAYW YO FBKGZ KWV WYWZ JASS MZ FY VAOOAGHSI YX ZLBZWFAPZ IY KGGYNBSAFQ JZ BXYBYFZ IY KGGZSZXKIZ IQZ VZPZSYBNZWI YO IQZ KBBXYBXAKIZ SHWKX FBKGZ GXKOI JZ BXYBYFZ IY VZPZSYB KSIZXWKIZ SADHAV KWV FYSAV OHZS MYYFIZXF NHGQ SKXTZX IQKW KWR WYJ MZAWT VZPZSYBZV HWIAS GZXIKAW JQAGQ AF FHBZXAYX JZ BXYBYFZ KVVAIAYWKS OHWVF OYX YIQZX ZWTAWZ VZPZSYBNZWI KWV OYX HWNKWWZV ZLBSYXKIAYWFZLBSYXKIAYWF JQAGQ KXZ BKXIAGHSKXSR ANBYXIKWI OYX YWZ BHXBYFZ JQAGQ IQAF WKIAYW JASS WZPZX YPZXSYYE IQZ FHXPAPKS YO IQZ NKW JQY OAXFI NKEZF IQAF VKXAWT OSATQI MHI AW K PZXR XZKS FZWFZ AI JASS WYI MZ YWZ NKW TYAWT IY IQZ NYYWAO JZ NKEZ IQAF CHVTNZWI KOOAXNKIAPZSR AI JASS MZ KW ZWIAXZ WKIAYW OYX KSS YO HF NHFI JYXE IY BHI QAN IQZXZ FZGYWVSR KW KVVAIAYWKS NASSAYW VYSSKXF IYTZIQZX JAIQ NASSAYW VYSSKXF KSXZKVR KPKASKMSZ JASS KGGZSZXKIZ VZPZSYBNZWI YO IQZ XYPZX WHGSZKX XYGEZI IQAF TAPZF BXYNAFZ YO FYNZ VKR BXYPAVAWT K NZKWF OYX ZPZW NYXZ ZLGAIAWT KWV KNMAIAYHF ZLBSYXKIAYW YO FBKGZ BZXQKBF MZRYWV IQZ NYYW BZXQKBF IY IQZ PZXR ZWV YO IQZ FYSKX FRFIZN AIFZSO IQAXV KW KVVAIAYWKS NASSAYW VYSSKXF JASS NKEZ IQZ NYFI YO YHX BXZFZWI SZKVZXFQAB MR KGGZSZXKIAWT IQZ HFZ YO FBKGZ FKIZSSAIZF OYX JYXSVJAVZ GYNNHWAGKIAYWF OYHXIQ KW KVVAIAYWKS NASSAYW VYSSKXFYO JQAGQ NASSAYW VYSSKXF AF OYX IQZ JZKIQZX MHXZKHJASS QZSB TAPZ HF KI IQZ ZKXSAZFI BYFFAMSZ IANZ K FKIZSSAIZ FRFIZN OYX JYXSVJAVZ JZKIQZX YMFZXPKIAYW SZI AI MZ GSZKXKWV IQAF AF K CHVTNZWI JQAGQ IQZ NZNMZXF YO IQZ GYWTXZFF NHFI OAWKSSR NKEZSZI AI MZ GSZKX IQKI A KN KFEAWT IQZ GYWTXZFF KWV IQZ GYHWIXR IY KGGZBI K OAXN GYNNAINZWI IY K WZJ GYHXFZ YO KGIAYW K GYHXFZ JQAGQ JASS SKFI OYX NKWR RZKXF KWV GKXXR PZXR QZKPR GYFIF NASSAYW VYSSKXF AW OAFGKS KW ZFIANKIZV FZPZW IY WAWZ MASSAYW VYSSKXF KVVAIAYWKS YPZX IQZ WZLI OAPZ RZKXF AO JZ KXZ IY TY YWSR QKSO JKR YX XZVHGZ YHX FATQIF AW IQZ OKGZ YO VAOOAGHSIR AW NR CHVTNZWI AI JYHSV MZ MZIIZX WYI IY TY KI KSS WYJ IQAF AF K GQYAGZ JQAGQ IQAF GYHWIXR NHFI NKEZ KWV A KN GYWOAVZWI IQKI HWVZX IQZ SZKVZXFQAB YO IQZ FBKGZ GYNNAIIZZF YO IQZ GYWTXZFF KWV IQZ KBBXYBXAKIAWT GYNNAIIZZF IQKI RYH JASS GYWFAVZX IQZ NKIIZX GKXZOHSSR AI AF K NYFI ANBYXIKWI VZGAFAYW IQKI JZ NKEZ KF K WKIAYW MHI KSS YO RYH QKPZ SAPZV IQXYHTQ IQZ SKFI OYHX RZKXF KWV QKPZ FZZW IQZ FATWAOAGKWGZ YO FBKGZ KWV IQZ KVPZWIHXZF AW FBKGZ KWV WY YWZ GKW BXZVAGI JAIQ GZXIKAWIR JQKI IQZ HSIANKIZ NZKWAWT JASS MZ YO NKFIZXR YO FBKGZ A MZSAZPZ JZ FQYHSV TY IY IQZ NYYW MHI A IQAWE ZPZXR GAIAUZW YO IQAF GYHWIXR KF JZSS KF IQZ NZNMZXF YO IQZ GYWTXZFF FQYHSV GYWFAVZX IQZ NKIIZX GKXZOHSSR AW NKEAWT IQZAX CHVTNZWI IY JQAGQ JZ QKPZ TAPZW KIIZWIAYW YPZX NKWR JZZEF KWV NYWIQF MZGKHFZ AI AF K QZKPR MHXVZW KWV IQZXZ AF WY FZWFZ AW KTXZZAWT YX VZFAXAWT IQKI IQZ HWAIZV FIKIZF IKEZ KW KOOAXNKIAPZ BYFAIAYW AW YHIZX FBKGZ HWSZFF JZ KXZ BXZBKXZV IY VY IQZ JYXE KWV MZKX IQZ MHXVZWF IY NKEZ AI FHGGZFFOHS AO JZ KXZ WYI JZ FQYHSV VZGAVZ IYVKR KWV IQAF RZKX IQAF VZGAFAYW VZNKWVF K NKCYX WKIAYWKS GYNNAINZWI YO FGAZWIAOAG KWV IZGQWAGKS NKWBYJZX NKIZXAZS KWV OKGASAIAZF KWV IQZ BYFFAMASAIR YO IQZAX VAPZXFAYW OXYN YIQZX ANBYXIKWI KGIAPAIAZF JQZXZ IQZR KXZ KSXZKVR IQAWSR FBXZKV AI NZKWF K VZTXZZ YO VZVAGKIAYW YXTKWAUKIAYW KWV VAFGABSAWZ JQAGQ QKPZ WYI KSJKRF GQKXKGIZXAUZV YHX XZFZKXGQ KWV VZPZSYBNZWI ZOOYXIF AI NZKWF JZ GKWWYI KOOYXV HWVHZ JYXE FIYBBKTZF AWOSKIZV GYFIF YO NKIZXAKS YX IKSZWI JKFIZOHS AWIZXKTZWGR XAPKSXAZF YX K QATQ IHXWYPZX YO EZR BZXFYWWZS WZJ YMCZGIAPZF KWV WZJ NYWZR GKWWYI FYSPZ IQZFZ BXYMSZNF IQZR GYHSV AW OKGI KTTXKPKIZ IQZN OHXIQZXHWSZFF ZPZXR FGAZWIAFI ZPZXR ZWTAWZZX ZPZXR FZXPAGZNKW ZPZXR IZGQWAGAKW GYWIXKGIYX KWV GAPAS FZXPKWI TAPZF QAF BZXFYWKS BSZVTZ IQKI IQAF WKIAYW JASS NYPZ OYXJKXV JAIQ IQZ OHSS FBZZV YO OXZZVYN AW IQZ ZLGAIAWT KVPZWIHXZ YO FBKGZ
P.S. I know the code isn't formatted well and is sloppy in itself, but it'll be streamlined later on.