Button not working correctly. Static bool, Potentiometer. uno

You better start drawing circuit diagrams with the standard component shapes instead of funny items and wires.