fixed a bug w/ score calculation