moved adding new score entry to separate function