calculates score as outputted in the original directory