Adding N Queens problem