fixing a couple of edge cases (draw9 and ternary)