Corrected a bug where scores weren't being calculated correctly