During the end step before your turn, cast Kaervek's Spite by paying ({B} magic symbol) ({B} magic symbol) ({B} magic symbol) , discarding your hand, and sacrificing all permanents.
Academy Rector triggers, exiling itself and searching your library for Barren Glory, putting it onto the battlefield, and shuffling your library.
Resolve Kaervek's Spite, causing target player to lose five life.
At the beginning of your upkeep, Barren Glory triggers, causing you to win the game.