move curAns to toCompare, push stack into stack field
this is a good test