Update matches.cpp