Problem with millis() timing

As soon as diff reaches 51, that if will be true. The second condition isn't really doing anything.