Fixed a bug how hand checks if it can give back cards and added tests