Passed stackNum to checkAns