This is essentially what the updateScore method should have done in link.rb.