Refactored the guess function to better communicate intent