Problems selecting and toggling LED status with potentiometer

The map and switch case work, so selection works now. Thanks for the tip. On another note, how/where could I incorporate an if statement in a case?