added function to check for best hand