Moved the prevButtonSet variable to state.h (to make it more global)