added trial function to check for repeated guesses