fix scoring

- count duplicate characters only once
- ignore case

fixes #1