8 queens problem: terms removed