I solved the N queens problem, this is my first try, maybe I'll optimize
A first try, don't expect it to be good