You have still not defined the Delay variable

int Delay = 3;

and there's something garbled now at the end of your function. crossed must be decremented. That was correct in your previous code.