added new code for counting turns and recording number guesses