Refactor to remove repeated code

and express intent.
Adjust game-play script to take guess input