Reworking the entire thing. My approach was wrong and I can easily make a better and faster version of the n-queens program.