working on fixing the algorithm. Still need to figure out why it doesnt produce the LAST set of valid solutions. It stops before that...