Implemented a choose system for CTF

Implemented a choose system for CTF.
Also fixed a bug that caused autobalancing to work not correctly.