Plant Monitor does not take right turn while moving

The moving plant monitor robot of mine only moves ahead, it does not take a right turn. I have written the exact same code that was provided in the training document. I even tried copy pasting the code, but still it does not take a right turn.