Team spawning (Hopefully) and cleaning code