debouncing logic for button. defined constants for timing