Update hand.py

Working version of hand.py