added a check for players at the table