Consolidated code

Consolidated click handlers for user guesses into a single function