true value added to return in matchesGivenSolution function to check whether a problem is complete or not