Started setting up teams. Added out of bounds check.