Completed assignment 2 guessing game