my motor doesnt change direction

  for(byte i = 0; i < 256; i++)

Oops