Added a score by frames function