fix scoring bug with multiple matched characters