added score code