Finish valid combo algorithm. I think it's wrong.