Major mods of EightQueens.g (new, hopefully smarter, but not too complicated)