Updated score calculation - some syntactical errors.