Java N Queens Solution