allie went back to her cabin and lay down , running what pinhead had said about the steel and steeplechase piers over and over again in her mind , until an idea came to her : a way to defeat the mcgill , or at least a way to distract him enough for her and her friends to escape .