The green, yellow and blue are phase wires and correctly connected to their counterparts. You've identified the red & black wires to the battery. The "five" wires look like they connect with the display, two for on/off, two power and a potentiometer for the throttle. There should be eight wires to the motor (six and two?). I'm just trying to help; hopefully DW will answer definitively or go to endless sphere.