implemented a quick and dirty version of N queens solution