Encapsulated hand.class.php