Implement eight queens.