Completed user guess function.