Refactor rules/is_draw