debouncing a button code

Abolaynain:
check the original question and comments ,please.

That did not include my code as far as I know. But that is irrelevant. Was my explanation satisfactory.

...R