What are the monotonically increasing numbers on the far left? They are clearly not line numbers. Did you put them there to deliberately make it difficult to reproduce your problem?
#define LeftMotorSpeed 10
Is pin 10 capable of PWM on your particular board?