changed logic in hal to correctly check for empty deck status