eliminating mutable vals in getelementtoguessat