You might want to extract the hand validation logic into a private method. For example you could define a `valid_hand?(hand)` method or even wrap up the whole assignment of `@hand` in a `hand=` method.