Score logic