Improved the while loop for players playing cards.