modified 8 queens problem