Stephy Mavididi's late header secures a dramatic 2-1 victory over Birmingham City to put Leicester City back to the top of the Sky Bet Championship.