Created a function to determine whether a guess is a hit or a miss (group assignment)