basketball is played by teams