// if the state is '2' the motor will turn left
I want to make changes that when 2 is recieved the right motor moves forward and lefft moter movers reverse so that the robot can turn easily
else if (state == '2') {
digitalWrite(motor1Pin1, HIGH);
digitalWrite(motor1Pin2, LOW);
digitalWrite(motor2Pin1, LOW);
digitalWrite(motor2Pin2, LOW);
if(flag == 0){
Serial.println("Turn LEFT");
flag=1;[code]
else if (state == '2') {
digitalWrite(motor1Pin1, HIGH);
digitalWrite(motor1Pin2, LOW);
digitalWrite(motor2Pin1, LOW);
digitalWrite(motor2Pin2, HIGH);
if(flag == 0){
Serial.println("Turn LEFT");
flag=1;[code]
If it is urgent, at least say why. Otherwise we assume it it not urgent or ignore it altogether.
Weedpharma
This problem/question is actually continuing here now:-
Help me to understand the code
I've tried without success. I feel like I've been banging my head against a brick wall all afternoon.
Maybe someone else now, (while my headache clears). 
I've tried reversing motor2 in both polarities, but apparently that didn't work?
If any moderators are reading this thread, it can probably be deleted, since it's been deserted and the question has now been answered in the OP's other thread.