added code to compare hands