Changed scoring to floating point numbers to avoid rounding errors