Updated index.php to describe new scoring system.
Actually fixed calculateTotals() function so that the variables are
declared before the loop begins.