added basic function to check guesses