Scoring now fixed (indentation errors!).

Found bug with detecting end of match.