Seeeduino, H-Bridge and 2 6 volt DC Motors

Very new to Arduino and trying to make RC tank move from Grove mini trackball and Seeeduino v4.2. everything lights up and looks like it would work, but it doesn’t and that’s why I’m here. the tank kit I bought is the Devastator tank mobile robot platform. I have 9v going into the H bridge along with it sharing a common ground to the Seeeduino. I’m including a hand-drawn circuit diagram and the code I have written. Any help or advice would be greatly appreciated.

<#include “Wire.h”
#include “MiniTrackball.h”

const int leftForward = 11;
const int leftBackward = 10;
const int rightForward = 8;
const int rightBackward = 9;
const int mA = 6;
const int mB = 5;

MTB MiniTrackball;
int main()
{

}

void setup()
// put your setup code here, to run once:
{
delay(1000); //wait for upload after power up
Wire.begin();
Serial.begin(115200);
pinMode(leftForward, OUTPUT);
pinMode(leftBackward, OUTPUT);
pinMode(rightForward, OUTPUT);
pinMode(rightBackward, OUTPUT);
}

void loop()
{
uint8_t track_data[5];

MiniTrackball.GetTrackData(track_data);

Serial.println(“±-----------------------------------------------------+”);
Serial.print(“MOTION_UP: “);
Serial.print(track_data[0], DEC);
Serial.print(”\t”);
Serial.print("MOTION_DOWN: ");
Serial.println(track_data[1], DEC);
Serial.print(“MOTION_LEFT: “);
Serial.print(track_data[2], DEC);
Serial.print(”\t”);
Serial.print("MOTION_RIGHT: ");
Serial.println(track_data[3], DEC);
Serial.print("MOTION_CLICK: “);
Serial.println(track_data[4], DEC);
Serial.println(“±-----------------------------------------------------+”);
Serial.println(” ");

delay(1000);

if (track_data[0] > 0)
{
// trigger GPIO forward pins
digitalWrite(mA, HIGH);
digitalWrite(mB, HIGH);
digitalWrite(rightForward, HIGH);
digitalWrite(leftForward, HIGH); //was high
digitalWrite(rightBackward, LOW);
digitalWrite(leftBackward, LOW); //was low
}
if (track_data[1] > 0)
{
//TRIGGER GPIO DOWN PINS
digitalWrite(rightBackward, HIGH);
digitalWrite(leftBackward, HIGH);
digitalWrite(leftForward, LOW);
digitalWrite(rightForward, LOW);
}
if (track_data[3] > 0)
{
//TRIGGER GPIO RIGHT PINS
digitalWrite(rightForward, LOW);
digitalWrite(leftForward, HIGH);
digitalWrite(rightBackward, HIGH);
digitalWrite(leftBackward, LOW);
}
if (track_data[2] > 0)
{
//TRIGGER GPIO LEFT PINS
digitalWrite(rightForward, HIGH);
digitalWrite(leftForward, LOW);
digitalWrite(rightBackward, LOW);
digitalWrite(leftBackward, HIGH);
}

if (track_data[0] > track_data[1] && track_data[0] > track_data[2] && track_data[0] > track_data[3]) {
//GO FORWARD
digitalWrite(mA, HIGH);
digitalWrite(mB, HIGH);
digitalWrite(rightForward, HIGH);
digitalWrite(leftForward, HIGH); //was high
digitalWrite(rightBackward, LOW);
digitalWrite(leftBackward, LOW); //was low
}
else if ( track_data[1] > track_data[0] && track_data[1] > track_data[2] && track_data[1] > track_data[3]) {
//GO BACK
digitalWrite(rightBackward, HIGH);
digitalWrite(leftBackward, HIGH);
digitalWrite(leftForward, LOW);
digitalWrite(rightForward, LOW);
}
else if ( track_data[2] > track_data[3] && track_data[2] > track_data[0] && track_data[2] > track_data[1]) {
//GO LEFT
digitalWrite(rightForward, HIGH);
digitalWrite(leftForward, LOW);
digitalWrite(rightBackward, LOW);
digitalWrite(leftBackward, HIGH);
}
else if ( track_data[3] > track_data[2] && track_data[3] > track_data[0] && track_data[3] > track_data[1]) {
//GO RIGHT
digitalWrite(rightForward, LOW);
digitalWrite(leftForward, HIGH);
digitalWrite(rightBackward, HIGH);
digitalWrite(leftBackward, LOW);
}
else {
//STOP
digitalWrite(rightForward, LOW);
digitalWrite(leftForward, LOW);
digitalWrite(rightBackward, LOW);
digitalWrite(leftBackward, LOW);
}
} >

First off, get rid of this:

int main()
{

}

and see what happens.