added a bunch of checks for the types of hands