refactor code for rounds and created guesses functionality