Re-coded and cleaned code. team support

Re-coded and cleaned code. Added team support and custom per-map spawning.