button read code reorganisation,

* similiar to pot reading code, button read code now reads button state,
and if its reading is stable, calls another function to process the data
* remove potNumber from global variables