refactor code to pass secret word state to all guess methods