Fix Hand.getValue using only one loop