Add type identification for full house and corresponding test, and refactor identification code