Ok, I think I have found the problem...in your instruction you have.
>>>Find:
unless (($profileinfo[8] eq "Administrator") || ($ModMatch eq "true")) {
>>>REPLACE with:
unless (($profileinfo[8] eq "Administrator") || ($ModMatch eq "true") || ($profileinfo[8] eq "Mega Moderator")) {
The Space between "Mega Moderator" needs to be removed. Will look like this:
unless (($profileinfo[8] eq "Administrator") || ($ModMatch eq "true") || ($profileinfo[8] eq "MegaModerator")) {