Shift in alliances, a new party and an unhappy ex-president may affect the outcome of next week’s election