Fix Eight Queen Algorithm