Update isMatch.cpp