click function

Added a toggle to the state during paused. reconsidering adding frames.