1) bitmask for multitype cards is added
2) stack resolve function changed