Your line:-
if (currentLED == bounce) {direction = -1, bounce -= 1;}
should be if (currentLED == bounce) {direction =-1; bounce -= 1;}
note the added ;
Your line:-
if (currentLED == bounce) {direction = -1, bounce -= 1;}
should be if (currentLED == bounce) {direction =-1; bounce -= 1;}
note the added ;