Fixed code errors

Had a misnamed Function after changing score to trash.