added comments to explain hand state