WARNING: The following contains spoilers for Season 3, Episode 7, of Westworld, "Passed Pawn," which aired Sunday on HBO.

In the most recent episode of Westworld, William, aka the Man in Black, was trapped in a psychiatric facility by Dolores. There, he underwent an intensive treatment via virtual reality that allowed him to interact with past versions of himself as well as his former boss and father-in-law, James Delos. After coming to grips with the darkness inside him, William brutally killed all past versions of himself and declared himself the hero of the battle between man and host he's in the middle of.

Last we saw him, William was rescued by Bernard and Stubbs, who plan on using the Man in Black in the war between Serac and Dolores. However, William has his own plans, and his own goals. In fact, in the series' latest episode, he declares that he plans on undoing his original sin -- but what is that exactly?

RELATED: Westworld: Is Maeve Dead? This Mirror World Theory May Explain Why Not

Near the end of "Passed Pawn," we pick up with Stubbs, Bernard and William, as they witness the chaos that Dolores has unleashed upon the world. William finds a weapon and gets the drop on his two captors, and it's at this moment that he reveals he aims to undo his original sin: creating the hosts. Therefore, it's apparent that William, the self-identified hero, has chosen his side. With this revelation, William has declared his alliance with the humans, and that he will try to kill all of the the remaining hosts. That means he plans to oppose Dolores, Bernard, Maeve and any other hosts that are still out there.

William may not have single-handedly created the hosts, but his company certainly did. He now understands that creating them is what ultimately doomed the world, and now is his chance to rectify that mistake before it's too late.

However, William also continues explaining himself by making some surprising mentions of God's plan, and making sure others don't succumb to sin. There's nothing about William that would indicate he's a man of faith, which instantly has us wondering: did he have a change of heart after his therapy or is he talking about another God?

RELATED: Westworld Season 3 Is Copying The Original Movie's Super Weird Sequel

Throughout Season 3 of Westworld, Rehoboam has been compared to a god, given that it dictates the lives of every human being on the planet -- and Dolores recognizes that it is what's really ruling the world. In this case, it's a god to both man and machine. Therefore, William could always be working for Rehoboam, whether he knows it or not. After all, though he has found his purpose, there is still a lot of mystery surrounding the Man in Black. In fact, in the Season 2 finale, a flash-forward segment showed that William was trapped in the Forge, and possibly a host/human hybrid, but we have yet to find out how he gets there.

Although the world is in disarray, Rehoboam may still be course-correcting, making projections that will return things back to normal. Perhaps the only way it sees peace coming back is without the hosts. And who better to destroy them than one of their creators?

Airing Sundays at 9 p.m. ET/PT on HBO, Westworld stars returning cast members Evan Rachel Wood, Thandie Newton, Ed Harris, Jeffrey Wright, Tessa Thompson, Luke Hemsworth, Simon Quarterman and Rodrigo Santoro, joined by series newcomers Aaron Paul, Vincent Cassel, Lena Waithe, Scott Mescudi, Marshawn Lynch, John Gallagher Jr., Michael Ealy and Tommy Flanagan.

KEEP READING: Westworld: Serac's Plan for Delos Is Much Worse Than Anyone Realized