eight queens and other bug fixes