The thick B- goes to battery pack minus/cell group #1/0v.
The thick Red positive wire from cell group #10 should be connected to a discharge connector like a XT60 or XT90 along with thick P- from BMS, in turn this is connected to the controller ( battery Red should not go directly to the motor)...