rewritten scoring to accomodate for tied games