different approaches to 8queens riddle