Refactor six_of_a_kind