button state tied to global clock (line 120), worked on my dev board