Refactor Guessing Game