Trying to fix arrays and mercuryDoom function