use bit mask to solve the Chinese chess generals problem, output all valid positions