Refactor ScoresController