Now it successfully solves 8 queens problem