8 buttons from 4 buttons and a potentiometer

As I see it your problems are:

  • Trying to have 8 buttons using an unconventional method without first learning to read one button correctly.
  • Reading the state of a button and using that in your code, you should be reading when a button becomes pressed, not, as you are doing, reading when a button is pressed.
  • Slowing the code to a crawl with multiple delays.

There are lots of tutorials on how to read a button, here is mine, but there are plenty more:

There are also lots of topics about problems with buttons, many of which cover problems similar to yours.