The future of Sudan depends on a bewildering number of variables as political parties , rebel armies , foreign corporations and religious groups compete for power and control over vast territory and oil wealth .