So then am I replacing the document.forms with document.getElementsByName("usedLetters") (the parts in bold)? I tried that, it didn't seem to work, so I'm guessing that's not right...?
I totally understood my code when using a text input, but after I decided to put buttons instead, my confusion...