Refactored guesses controller