fixed server freeze with switches and made per-team collision