in reply to Character positioning

If you wish to replace all the charecters that you have not guessed with _ then :-
s/[^$guesses]/_/g;
Hope it helps
UnderMine