Fixes an undefined score on Sundays and made weights floats for greater accuracy.