nQueens solution - currently works for board sizes 4-15