<P> Working for the Right Arm, Thomas arrives at WICKED's headquarters and discovers Janson intends to complete the cure by examining Thomas's physical brain structure; an act that will result in his death . Thomas is able to plant a device that disables all of WICKED's weapons, but is forced to begin the deadly brain surgery as the Right Arm begins storming the facility . </P> <P> Thomas wakes up to find himself not dead after all and finds a note from Chancellor Paige, leader of WICKED; it reveals they already have enough resources to build the blueprint for the cure from the Trials and his brain is not needed, but that some WICKED staff did not believe in the violence that WICKED was causing for a cure . It also reveals the location of the Immunes the Right Arm "sold" to WICKED to gain access, and a "safe place" where Thomas should take them all . Thomas and his friends re-enter the Maze to find WICKED's captured Immunes . They quickly learn the Right Arm does not intend to occupy WICKED headquarters; they intend to destroy it . Explosions rock the Maze, while chunks of debris come crashing down, killing some Immunes within . The Grievers come out of where they were stored, but Teresa shows Thomas how to manually shut them down . </P> <P> Returning to the outside world, they are attacked by some WICKED survivors, including Janson . However, Thomas and the other immunes are able to take them down, and Thomas strangles Janson to death . Thomas is almost trapped by a piece of falling debris on the way to the Flat Trans that takes them to the promised "safe place". Teresa pushes him out of harms way, but dies in Thomas' place . The survivors including Thomas, Minho, Gally, Frypan, Clint, and others from Group A, Aris, Harriet, Sonya, and a few others of Group B, as well as Brenda and Jorge finally make it through the portal to a lush paradise . </P> <P> The epilogue reveals the Flare was deliberately engineered and released by the government as a form of population control after the sun flares, believing it kills quickly and it stops spreading after a while, but escalated beyond control, and WICKED was unable to find a cure . The Chancellor realized the Immunes were their only hope from the beginning; as such, she enacts a plan with Brenda and Jorge to send the Immunes through a flat trans . While the rest of the world will crumble, the remaining Immunes will rebuild society and restore the human race . This, she claims, is the reason "WICKED is good ." </P>

Who dies in the maze runner the death cure