Corrected critical mistake in match.py