Queens Problem Solver 1

This program finds solutions to what is known as the queens problem. The object is to put a number queens equal to the number of rows on a particular board such that none of the queens can attack each other. To begin, enter the number of rows for the board you want to find solutions for, then press enter. The first solution is displayed, as well as how many solutions there are and which one you're currently viewing. Next and Prev display the different solutions. Note that as the number of rows grows the number of solutions found and time taken grows exponentially, possibly even factorially. In case you're interested, the boards are kept in a linked list data structure.