Button not working correctly. Static bool, Potentiometer. uno

pot wires from left to right are, black, red , white. The white wire isn't grounded. I'm going to fix that by attaching it to Arduino ground