fixed bugs with scoring