update and simplified scoring for mismatches and matches.