isMatch.cpp