Added error handeling on the update scores method