Fixes issue with # of queens