initial working ruby n-queens implementation