solving works now. generating needs work.